terraform-aws-modules/terraform-aws-rds

Need a secret manager secret name not only arn

Closed this issue · 3 comments

For now we are only supporting the arn as a output, is there is a change to output the secret name itself?

output "db_instance_master_user_secret_arn" {
  description = "The ARN of the master user secret (Only available when manage_master_user_password is set to true)"
  value       = module.db.db_instance_master_user_secret_arn
}`

no, you need to retrieve it from the secret manager - if you wish to do that in Terraform (not recommended), you can use an SSM parameter data source

Aah I see, thanks.

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.