get_aws_caller_identity_user_id
unitstack
Usage
get_aws_caller_identity_user_id() --> stringget_aws_caller_identity_user_id asks AWS STS for the UserId of the user or role the current credentials belong to, and fails when Terragrunt has no AWS credentials. For an assumed role, the ID ends with the session name after a colon. Once Terragrunt has evaluated the unit’s iam_role, it asks with that role, so a call evaluated before and after it can return different IDs.
inputs = { allowed_user_ids = [get_aws_caller_identity_user_id()]}Examples
inputs = { caller_user_id = get_aws_caller_identity_user_id()}