terraform.aws-baseline-infra/modules/security_identity_compliance/secretsmanager-secret/outputs.tf

12 lines
257 B
Terraform
Raw Normal View History

2023-12-21 17:47:41 +08:00
output "secret_arn" {
value = aws_secretsmanager_secret.secret1.arn
}
2023-12-21 17:47:41 +08:00
output "secret_id" {
value = "${var.secret_name}-${random_id.rid.dec}"
2023-12-21 17:47:41 +08:00
}
output "generated_password" {
value = try(random_password.this[0].result, "None")
sensitive = true
}