Skip to content

Commit

Permalink
Merge pull request #8 from pogosoftware/feature/add-name-output
Browse files Browse the repository at this point in the history
Added secret name output
  • Loading branch information
scrhicks authored May 16, 2022
2 parents e1f1edf + b500346 commit 6cbf942
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ No resources.
|------|-------------|
| <a name="output_secret_arn"></a> [secret\_arn](#output\_secret\_arn) | The ARN of the secret |
| <a name="output_secret_id"></a> [secret\_id](#output\_secret\_id) | The ID of the secret |
| <a name="output_secret_name"></a> [secret\_name](#output\_secret\_name) | The name of the secret |
| <a name="output_secret_policy_id"></a> [secret\_policy\_id](#output\_secret\_policy\_id) | The ID of the secret policy |
| <a name="output_secret_replica"></a> [secret\_replica](#output\_secret\_replica) | Attributes of a replica |
| <a name="output_secret_rotation_enabled"></a> [secret\_rotation\_enabled](#output\_secret\_rotation\_enabled) | Specifies whether automatic rotation is enabled for this secret |
Expand Down
1 change: 1 addition & 0 deletions modules/secret/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions modules/secret/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ No modules.
|------|-------------|
| <a name="output_arn"></a> [arn](#output\_arn) | The ARN of the secret |
| <a name="output_id"></a> [id](#output\_id) | The ID of the secret |
| <a name="output_name"></a> [name](#output\_name) | The name of the secret |
| <a name="output_replica"></a> [replica](#output\_replica) | Attributes of a replica |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
5 changes: 5 additions & 0 deletions modules/secret/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ output "id" {
value = try(aws_secretsmanager_secret.this[0].id, "")
}

output "name" {
description = "The name of the secret"
value = try(aws_secretsmanager_secret.this[0].name, "")
}

output "arn" {
description = "The ARN of the secret"
value = try(aws_secretsmanager_secret.this[0].arn, "")
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ output "secret_id" {
value = try(module.secret.this[0].id, "")
}

output "secret_name" {
description = "The name of the secret"
value = try(module.secret.this[0].name, "")
}

output "secret_arn" {
description = "The ARN of the secret"
value = try(module.secret.this[0].arn, "")
Expand Down

0 comments on commit 6cbf942

Please sign in to comment.