Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Common][All] remove silent failure mechanism and throw unauthorized tagging exception #482

Conversation

moataz-mhmd
Copy link
Collaborator

Description of changes:
To ensure compatibility with older versions, we previously ignored the AccessDenied exception when a customer did not have permission to add stack level tags. This PR addresses this issue by aligning with the latest CloudFormation guidelines and instead throwing an UnauthorizedTaggingOperation error code.

However, we have retained the already exist tagging logic to differentiate between access denied for resource tags and access denied for stack level tags. Once CloudFormation confirms that it is safe to convert UnauthorizedTaggingOperation to the regular AccessDenied error code, we can safely remove all the logic related to tag error management and the safeCreate mechanism.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@moataz-mhmd moataz-mhmd force-pushed the apply-unauthorized-tagging-exception-on-stack-tags-v2 branch from 43ac12b to 72bd7ac Compare November 9, 2023 15:30
@moataz-mhmd moataz-mhmd requested a review from khebul November 9, 2023 16:03
@moataz-mhmd moataz-mhmd merged commit cd8a398 into aws-cloudformation:master Nov 13, 2023
1 check passed
dbbh pushed a commit to dbbh/aws-cloudformation-resource-providers-rds that referenced this pull request Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants