Skip to content

Commit e3d07ad

Browse files
feat: Add secret_name to outputs (#9)
Co-authored-by: anil <[email protected]>
1 parent 28f8fb6 commit e3d07ad

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ No modules.
186186
| <a name="output_secret_arn"></a> [secret\_arn](#output\_secret\_arn) | The ARN of the secret |
187187
| <a name="output_secret_binary"></a> [secret\_binary](#output\_secret\_binary) | The secret binary |
188188
| <a name="output_secret_id"></a> [secret\_id](#output\_secret\_id) | The ID of the secret |
189+
| <a name="output_secret_name"></a> [secret\_name](#output\_secret\_name) | The name of the secret |
189190
| <a name="output_secret_replica"></a> [secret\_replica](#output\_secret\_replica) | Attributes of the replica created |
190191
| <a name="output_secret_string"></a> [secret\_string](#output\_secret\_string) | The secret string |
191192
| <a name="output_secret_version_id"></a> [secret\_version\_id](#output\_secret\_version\_id) | The unique identifier of the version of the secret |

examples/complete/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ No inputs.
6868
| <a name="output_rotate_secret_version_id"></a> [rotate\_secret\_version\_id](#output\_rotate\_secret\_version\_id) | The unique identifier of the version of the secret |
6969
| <a name="output_standard_secret_arn"></a> [standard\_secret\_arn](#output\_standard\_secret\_arn) | The ARN of the secret |
7070
| <a name="output_standard_secret_id"></a> [standard\_secret\_id](#output\_standard\_secret\_id) | The ID of the secret |
71+
| <a name="output_standard_secret_name"></a> [standard\_secret\_name](#output\_standard\_secret\_name) | The name of the secret |
7172
| <a name="output_standard_secret_replica"></a> [standard\_secret\_replica](#output\_standard\_secret\_replica) | Attributes of the replica created |
7273
| <a name="output_standard_secret_string"></a> [standard\_secret\_string](#output\_standard\_secret\_string) | The secret string |
7374
| <a name="output_standard_secret_version_id"></a> [standard\_secret\_version\_id](#output\_standard\_secret\_version\_id) | The unique identifier of the version of the secret |

examples/complete/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ output "standard_secret_id" {
1212
value = module.secrets_manager.secret_id
1313
}
1414

15+
output "standard_secret_name" {
16+
description = "The name of the secret"
17+
value = module.secrets_manager.secret_name
18+
}
19+
1520
output "standard_secret_replica" {
1621
description = "Attributes of the replica created"
1722
value = module.secrets_manager.secret_replica

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ output "secret_id" {
1212
value = try(aws_secretsmanager_secret.this[0].id, null)
1313
}
1414

15+
output "secret_name" {
16+
description = "The name of the secret"
17+
value = try(aws_secretsmanager_secret.this[0].name, null)
18+
}
19+
1520
output "secret_replica" {
1621
description = "Attributes of the replica created"
1722
value = try(aws_secretsmanager_secret.this[0].replica, null)

0 commit comments

Comments
 (0)