Get rid of AWS auto-generated roles in CDK CodePipeline #23719
Unanswered
garysassano
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to avoid role proliferation, so I'm trying to reduce the number of roles in my IAM to as few as possible by also getting rid of all AWS auto-generated roles.
I found out that by passing a custom role to CodePipeline and CodeBuildStep constructs I could avoid the creation of AWS auto-generated roles. So I created these two custom roles:
The problem is that I was only able to reduce the number of AWS auto-generated roles from 22 down to 8. So now I have 10 roles (8 auto-generated + 2 custom ones) instead of 22, which still doesn't meet my goal.
I tryed to ask ChatGPT about the 4 roles that get automatically created for each CodePipeline:
So, I guess that what I'm trying to achieve is actually not possible?
Beta Was this translation helpful? Give feedback.
All reactions