Skip to content

Commit

Permalink
fix: make the outputs more convenient and update deps (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetOps authored Jul 17, 2022
1 parent 213c897 commit 4e77e08
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module "secrets" {

| Name | Source | Version |
|------|--------|---------|
| <a name="module_kms_key"></a> [kms\_key](#module\_kms\_key) | cloudposse/kms-key/aws | 0.11.0 |
| <a name="module_kms_key"></a> [kms\_key](#module\_kms\_key) | cloudposse/kms-key/aws | 0.12.1 |
| <a name="module_this"></a> [this](#module\_this) | cloudposse/label/null | 0.25.0 |

## Resources
Expand Down Expand Up @@ -103,11 +103,11 @@ module "secrets" {

| Name | Description |
|------|-------------|
| <a name="output_alias_arn"></a> [alias\_arn](#output\_alias\_arn) | KMS key alias ARN |
| <a name="output_alias_name"></a> [alias\_name](#output\_alias\_name) | KMS key alias name |
| <a name="output_arn"></a> [arn](#output\_arn) | ARN of the secret |
| <a name="output_id"></a> [id](#output\_id) | ID of the secret |
| <a name="output_key_arn"></a> [key\_arn](#output\_key\_arn) | KMS key ARN |
| <a name="output_kms_key_alias_arn"></a> [kms\_key\_alias\_arn](#output\_kms\_key\_alias\_arn) | KMS key alias ARN |
| <a name="output_kms_key_alias_name"></a> [kms\_key\_alias\_name](#output\_kms\_key\_alias\_name) | KMS key alias name |
| <a name="output_kms_key_arn"></a> [kms\_key\_arn](#output\_kms\_key\_arn) | KMS key ARN |
| <a name="output_kms_key_id"></a> [kms\_key\_id](#output\_kms\_key\_id) | KMS key ID |
| <a name="output_name"></a> [name](#output\_name) | Name of the secret |
| <a name="output_version_id"></a> [version\_id](#output\_version\_id) | The unique identifier of the version of the secret. |
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ No providers.
| Name | Source | Version |
|------|--------|---------|
| <a name="module_label"></a> [label](#module\_label) | cloudposse/label/null | 0.25.0 |
| <a name="module_secrets"></a> [secrets](#module\_secrets) | SweetOps/secretsmanager/aws | ../../ |
| <a name="module_secrets"></a> [secrets](#module\_secrets) | ../../ | n/a |
| <a name="module_ssh_key_pair"></a> [ssh\_key\_pair](#module\_ssh\_key\_pair) | cloudposse/key-pair/aws | 0.18.1 |

## Resources
Expand Down
3 changes: 1 addition & 2 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ module "ssh_key_pair" {
}

module "secrets" {
source = "SweetOps/secretsmanager/aws"
version = "../../"
source = "../../"

secret_version = {
enabled = true
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 3 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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"
}

0 comments on commit 4e77e08

Please sign in to comment.