unique_id
Unique identifier assigned by AWS (format: AROA...). This is the principal ID used in: - CloudTrail logs for role assumption events - S3 access logs identifying the caller - Resource policies using aws:userId conditions Unlike role_id, this is the AWS-assigned identifier that appears in audit logs and can be used to trace actions back to this role.
Unique identifier for the role.
Example Value
AROA3XFRBF535PLKEXAMPLE
Usage
module "iam_role" {
source = "registry.patterneddesigns.ca/patterneddesigns/iam-role/aws"
version = "0.1.0"
# ... inputs
}
# Access this output
output "unique_id" {
value = module.iam_role.unique_id
}