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
add iam_managed_policy_attachment module #32
Conversation
fb77002
to
7824a73
Compare
7824a73
to
b49ad63
Compare
@Akasurde @BobBoldin @Constantin07 @Deepakkothandan @Etherdaemon @Java1Guy @Madhura-CSI @MichaelBaydoun @Shaps @Sodki @Zeekin @aidan- @akazakov @alachaum @aljazkosir @amir343 @anryko @axc450 @bekelchik @bpennypacker @brandond @captainkerk @chenl87 @defionscode @defunctio @dennisconrad @dkhenry @erydo @fiunchinho @fivethreeo @flowerysong @garethr @gobins @gurumaia @hsingh @hyperized @iiibrad @infectsoldier @j-carl @jarv @jimbydamonk @joelthompson @jonhadfield @jonmer85 @joshsouza @jsdalton @kaczynskid @leedm777 @linuxdynasty @loia @markuman @matt-telstra @michaeljs1990 @miha-plesko @mikedlr @minichate @mjschultz @mmochan @mmoyle @mpechner @mtraynham @nadirollo @nand0p @naslanidis @nathanwebsterdotme @nerzhul @nickball @orthanc @ozbillwang @piontas @pjodouin @prasadkatti @psykotox @ptux @pwnall @raags @rafaeldriutti @rickmendes @rrey @ruimoreira @ryansb @ryansydnor @s-hertel @sbj-ss @scottanderson42 @seiffert @shepdelacreme @simplesteph @slapula @stefanhorning @steynovich @tastychutney @tdekeyser @tedder @timmahoney @tomislacker @tremble @tsiganenok @viper233 @vorotech @willricardo @willthames @wilvk @wimnat @xlab-si @yaakov-github @zacblazic @Zeekin @zimbatm As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
Hi @rbobrowicz Sorry it's taken so long to get back to you and thank you for the time you've taken in writing the module and opening this PR. The iam_user, iam_group and iam_role modules have a 'managed_policies' parameter which I think achieves what this module is trying to do, is there a specific use case that you feel is missed by the managed_policies parameters? |
Huh, I guess I either missed those or that wasn't around when I first ran into this issue. When I tried to figure out how to attach managed policies in the past I stumbled into the issue I linked in my opening PR which suggested these features weren't available, so I rolled my own and thought I'd contribute it back. I'll take a closer look at the |
SUMMARY
There is no existing module for attaching managed policies to iam entities.
iam_managed_policy
can create managed policies, butiam_policy
can only attach inline policies. This PR addsiam_managed_policy_attachment
to fill the gap.We've been using this at my work for close to a year, I decided to clean it up and make a PR. It addresses ansible/ansible#31999
ISSUE TYPE
COMPONENT NAME
iam_managed_policy_attachment
ADDITIONAL INFORMATION