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

23 lines
575 B
Terraform
Raw Normal View History

2022-09-16 10:37:28 +08:00
output iam-user-name {
value = aws_iam_user.iam-user.name
}
output iam-user-arn {
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-access-key-pgp {
value = try(aws_iam_access_key.iam-user-access-key-pgp[0].id, "none")
}
output iam-user-secret-key-pgp {
value = try(aws_iam_access_key.iam-user-access-key-pgp[0].encrypted_secret, "none")
}
output iam-user-pass-pgp {
value = try(aws_iam_user_login_profile.iam-user-profile-pgp[0].encrypted_password, "none")
2022-09-16 10:37:28 +08:00
}