roleFromArn with "mutable: false" adds role policies #5943
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
p0
iam.Role.fromRoleArn()
with{ mutable: false }
creates role policies in 1.21.1. This did not occur in <=1.20.0Reproduction Steps
npm i
cdk synth
npm i
cdk synth
Or just view the
synth-1.20.0.json
andsynth-1.21.1.json
in the repro.Error Log
Causes many issues when deploying to a role-strict environment.
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: