-
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: Make setting trust on roles more clear in overview and function descriptions #22550
Comments
The To modify the trust policy after it's been created, you will want to access the PolicyDocument on Role.assumeRolePolicy I think we should clarify this in the readme. I'm going to repurpose this issue as a docs issue |
Thanks for explaining :) |
…principals to TrustRelationship of Role to overcome limitation of grantAssumeRole() (aws#22550)
Describe the bug
When running the grant_assume_role on a role with a Service Principle as the input, the role's trust policy is not updated.
Expected Behavior
I expect the role's trust policy to be updated.
Current Behavior
Nothing happens. If I change the Service Principle in the function and run a cdk diff, there is no difference in deployment suggesting the function is not doing anything.
Reproduction Steps
In Python:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.43.1
Framework Version
No response
Node.js Version
8.5.4
OS
Mac Monterey 12.5
Language
Python
Language Version
3.9.14
Other information
No response
The text was updated successfully, but these errors were encountered: