role_name
Name of the IAM role. Use the name (not ARN) when: - Attaching policies via aws_iam_role_policy_attachment - Referencing in aws_iam_instance_profile - Using with AWS CLI commands Use the ARN instead when: - Configuring cross-account access - Setting up service-linked resources
The name of the IAM role.
Example Value
app-service-role
Usage
module "iam_role" {
source = "registry.patterneddesigns.ca/patterneddesigns/iam-role/aws"
version = "0.1.0"
# ... inputs
}
# Access this output
output "role_name" {
value = module.iam_role.role_name
}