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

software.amazon.awscdk.services.iam.ManagedPolicy: Tags not generated #29428

Open
lohithsamaga opened this issue Mar 11, 2024 · 2 comments
Open
Labels
@aws-cdk/aws-iam Related to AWS Identity and Access Management bug This issue is a bug. effort/medium Medium work item – several days of effort p2

Comments

@lohithsamaga
Copy link

Describe the bug

When a ,amahed policy is cxreated, tags are no generated.
The tags mage be directly attached using Tags.of(policy) or that are inherited from the stack itself.

Expected Behavior

Tags are attached to the managed policy.

Current Behavior

Tags are not attached top the managed policy.

Reproduction Steps

 
ManagedPolicy policy = ManagedPolicy.Builder
	    	.create(this, "Policy")
	    	.description("Basic Policy")
	    	.document(pd)
	    	.managedPolicyName("MyPolicy"))
	    	.build();

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.102.0 (build 2abc59a)

Framework Version

2.102.0 (build 2abc59a)

Node.js Version

v18.16.0

OS

WIndows 10

Language

Java

Language Version

11

Other information

No response

@lohithsamaga lohithsamaga added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 11, 2024
@github-actions github-actions bot added the @aws-cdk/aws-iam Related to AWS Identity and Access Management label Mar 11, 2024
@pahud
Copy link
Contributor

pahud commented Mar 11, 2024

Hi

Can you explain what tag key/value do you expect to apply on the managed policy from the provided code?

 
ManagedPolicy policy = ManagedPolicy.Builder
	    	.create(this, "Policy")
	    	.description("Basic Policy")
	    	.document(pd)
	    	.managedPolicyName("MyPolicy"))
	    	.build();

@pahud pahud added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Mar 11, 2024
@lohithsamaga
Copy link
Author

Tags are added using Tags.of(construct).
In my stack, they are added at the stack level as well as the policy level.
The tags added at the stack level appear for all components in my stack except this one.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-iam Related to AWS Identity and Access Management bug This issue is a bug. effort/medium Medium work item – several days of effort p2
Projects
None yet
Development

No branches or pull requests

2 participants