terraform.aws-baseline-infra/modules/security_identity_compliance/iam-user/outputs.tf

15 lines
342 B
Terraform
Raw Normal View History

output "iam-user-name" {
2022-09-16 10:37:28 +08:00
value = aws_iam_user.iam-user.name
}
output "iam-user-arn" {
2022-09-16 10:37:28 +08:00
value = aws_iam_user.iam-user.arn
}
output "iam-user-access-key" {
value = try(aws_iam_access_key.iam-user-access-key[0].id, "none")
}
output "iam-user-secret-arn" {
value = try(aws_secretsmanager_secret_version.iam-user-secret[0].arn, "none")
}