-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(aws-iam): (stack tags are not set for awsiam.CfnManagedPolicy) #30982
Comments
@kylos101 Good afternoon. Per CloudFormation guide, AWS::IAM::Policy and AWS::IAM::ManagedPolicy resources do not support Thanks, |
Hi @ashishdhingra , thank you so much for the prompt reply! In the AWS Console, I see a field for tags like so: This is infact the policy we created with CloudFormation and CfnManagedPolicy. |
This appears to be limitation of CloudFormation. The IAM policy schema at https://github.com/cdklabs/awscdk-service-spec/tree/main/sources/CloudFormationSchema/us-east-1 also doesn't appear to support I would open ticket with CloudFormation team for their inputs. |
Internal ticket created for CloudFormation team: P145169283 |
@kylos101 Got an update from CloudFormation team:
We could keep this issue open until CloudFormation support is added, after which it would be automatically pushed to CDK L1 construct. |
Ah... I love the "just monkey-patch it" response from the CFN team 🤣 |
Describe the bug
Stack tags are not added to IAM policies, they are added to roles.
I add them to my stack like so:
As a workaround, I tried explicitly adding them to policies like so, but, to no avail:
It seems like it may potentially be a gap or limit, I do not see tags available here (although Tags can be set in the AWS console for Policies).
Expected Behavior
Stack tags are applied to managed policies
Current Behavior
Stack tags are not applied to managed policies
Reproduction Steps
See above sample code
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.147.3 (build 32f0fdb)
Framework Version
No response
Node.js Version
v20.8.0
OS
Ubuntu 22.04.4 LTS
Language
Go
Language Version
1.22
Other information
I'm using these lib versions:
The text was updated successfully, but these errors were encountered: