diff --git a/README.md b/README.md index af108dd..cf6a56b 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,7 @@ No modules. | [secret\_arn](#output\_secret\_arn) | The ARN of the secret | | [secret\_binary](#output\_secret\_binary) | The secret binary | | [secret\_id](#output\_secret\_id) | The ID of the secret | +| [secret\_name](#output\_secret\_name) | The name of the secret | | [secret\_replica](#output\_secret\_replica) | Attributes of the replica created | | [secret\_string](#output\_secret\_string) | The secret string | | [secret\_version\_id](#output\_secret\_version\_id) | The unique identifier of the version of the secret | diff --git a/examples/complete/README.md b/examples/complete/README.md index 598b0db..016cce6 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -68,6 +68,7 @@ No inputs. | [rotate\_secret\_version\_id](#output\_rotate\_secret\_version\_id) | The unique identifier of the version of the secret | | [standard\_secret\_arn](#output\_standard\_secret\_arn) | The ARN of the secret | | [standard\_secret\_id](#output\_standard\_secret\_id) | The ID of the secret | +| [standard\_secret\_name](#output\_standard\_secret\_name) | The name of the secret | | [standard\_secret\_replica](#output\_standard\_secret\_replica) | Attributes of the replica created | | [standard\_secret\_string](#output\_standard\_secret\_string) | The secret string | | [standard\_secret\_version\_id](#output\_standard\_secret\_version\_id) | The unique identifier of the version of the secret | diff --git a/examples/complete/outputs.tf b/examples/complete/outputs.tf index dc87c16..628bd31 100644 --- a/examples/complete/outputs.tf +++ b/examples/complete/outputs.tf @@ -12,6 +12,11 @@ output "standard_secret_id" { value = module.secrets_manager.secret_id } +output "standard_secret_name" { + description = "The name of the secret" + value = module.secrets_manager.secret_name +} + output "standard_secret_replica" { description = "Attributes of the replica created" value = module.secrets_manager.secret_replica diff --git a/outputs.tf b/outputs.tf index b4b412c..2f5df47 100644 --- a/outputs.tf +++ b/outputs.tf @@ -12,6 +12,11 @@ output "secret_id" { value = try(aws_secretsmanager_secret.this[0].id, null) } +output "secret_name" { + description = "The name of the secret" + value = try(aws_secretsmanager_secret.this[0].name, null) +} + output "secret_replica" { description = "Attributes of the replica created" value = try(aws_secretsmanager_secret.this[0].replica, null)