- Newest
- Most votes
- Most comments
-
Evaluation Context during CreateRole During the initial creation of a resource, the aws:ResourceTag/key condition evaluates to null (absent) for the
iam:TagRolepermission check. Proposed ownership tags are solely available inaws:RequestTag/keyandaws:TagKeys. They do not populate theaws:ResourceTagcontext because the resource does not yet exist. -
Creation-Time vs. Standalone Tagging Discriminator There is no documented IAM condition key (such as the
ec2:CreateActionkey used in Amazon EC2) that natively distinguishes aniam:TagRolecheck triggered byiam:CreateRolefrom a standaloneiam:TagRoleAPI call. Becauseaws:ResourceTagis absent during creation, enforcing anaws:ResourceTag/ownercondition oniam:TagRoleto prevent the adoption of existing untagged roles will unavoidably deny the creation-time tag assignment. Natively separating these actions solely via resource-based or identity-based IAM conditions is not supported. An external detective/preventative control mechanism (like EventBridge auto-remediation or a Service Control Policy explicitly denying TagRole except by specific deployment roles) is required to enforce this boundary securely. -
CloudFormation System Tags Behavior The schema declaration
tagging.cloudFormationSystemTags = falseacts as an explicit directive to the CloudFormation resource provider framework. It dictates that the CloudFormation engine must not append its default system tags (such asaws:cloudformation:stack-idoraws:cloudformation:logical-id) to the tagging payload during resource provisioning. Consequently, this guarantees thataws:cloudformation:*keys are absent from both theaws:TagKeysarray andaws:RequestTagevaluation context during the handler's execution of the API call.
Relevant content
- AWS OFFICIALUpdated 7 months ago
