https://aws.amazon.com/SAML/Attributes/AccessControl:<TAGNAME>
Settings - Identity Source - Attributes for access control
"Condition": { "StringEquals": { "ec2:ResourceTag/<TAGNAME>": "${aws:PrincipalTag/<TAGNAME>}" } }
If you need a user attribute as a principal tag and can't update the IdP to to pass the attribute as an access control. You can add the key value mapping to the Attributes for access control. For this to work the attribute value must be show in the AWS SSO users information.
Key | Value |
---|---|
Username | ${path:userName} |
{ "requestParameters": { "principalTags": { "<TAGNAME>": "<TAGVALUE>" } } }
Reference Links