From 4e77e08c3bb43b6c6cfb819f7322f8414d1c06ad Mon Sep 17 00:00:00 2001 From: Vladimir <26582191+SweetOps@users.noreply.github.com> Date: Sun, 17 Jul 2022 12:55:08 +0200 Subject: [PATCH] fix: make the outputs more convenient and update deps (#4) --- README.md | 8 ++++---- examples/basic/README.md | 2 +- examples/basic/main.tf | 3 +-- main.tf | 2 +- outputs.tf | 6 +++--- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 7eb1a38..9a14f11 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ module "secrets" { | Name | Source | Version | |------|--------|---------| -| [kms\_key](#module\_kms\_key) | cloudposse/kms-key/aws | 0.11.0 | +| [kms\_key](#module\_kms\_key) | cloudposse/kms-key/aws | 0.12.1 | | [this](#module\_this) | cloudposse/label/null | 0.25.0 | ## Resources @@ -103,11 +103,11 @@ module "secrets" { | Name | Description | |------|-------------| -| [alias\_arn](#output\_alias\_arn) | KMS key alias ARN | -| [alias\_name](#output\_alias\_name) | KMS key alias name | | [arn](#output\_arn) | ARN of the secret | | [id](#output\_id) | ID of the secret | -| [key\_arn](#output\_key\_arn) | KMS key ARN | +| [kms\_key\_alias\_arn](#output\_kms\_key\_alias\_arn) | KMS key alias ARN | +| [kms\_key\_alias\_name](#output\_kms\_key\_alias\_name) | KMS key alias name | +| [kms\_key\_arn](#output\_kms\_key\_arn) | KMS key ARN | | [kms\_key\_id](#output\_kms\_key\_id) | KMS key ID | | [name](#output\_name) | Name of the secret | | [version\_id](#output\_version\_id) | The unique identifier of the version of the secret. | diff --git a/examples/basic/README.md b/examples/basic/README.md index c6b559b..3082207 100644 --- a/examples/basic/README.md +++ b/examples/basic/README.md @@ -57,7 +57,7 @@ No providers. | Name | Source | Version | |------|--------|---------| | [label](#module\_label) | cloudposse/label/null | 0.25.0 | -| [secrets](#module\_secrets) | SweetOps/secretsmanager/aws | ../../ | +| [secrets](#module\_secrets) | ../../ | n/a | | [ssh\_key\_pair](#module\_ssh\_key\_pair) | cloudposse/key-pair/aws | 0.18.1 | ## Resources diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 560a4fb..15aae31 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -18,8 +18,7 @@ module "ssh_key_pair" { } module "secrets" { - source = "SweetOps/secretsmanager/aws" - version = "../../" + source = "../../" secret_version = { enabled = true diff --git a/main.tf b/main.tf index 238ecde..1a359c1 100644 --- a/main.tf +++ b/main.tf @@ -33,7 +33,7 @@ locals { module "kms_key" { source = "cloudposse/kms-key/aws" - version = "0.11.0" + version = "0.12.1" description = local.kms_key["description"] deletion_window_in_days = local.kms_key["deletion_window_in_days"] diff --git a/outputs.tf b/outputs.tf index 8d69f66..49d06b3 100644 --- a/outputs.tf +++ b/outputs.tf @@ -18,7 +18,7 @@ output "version_id" { description = "The unique identifier of the version of the secret." } -output "key_arn" { +output "kms_key_arn" { value = module.kms_key.key_arn description = "KMS key ARN" } @@ -28,12 +28,12 @@ output "kms_key_id" { description = "KMS key ID" } -output "alias_arn" { +output "kms_key_alias_arn" { value = module.kms_key.alias_arn description = "KMS key alias ARN" } -output "alias_name" { +output "kms_key_alias_name" { value = module.kms_key.alias_name description = "KMS key alias name" }