-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix some loops only picking up one element from the list #43
Conversation
Hi @Roberdvs, thanks for this 👍 (I think I've not noticed this bug yet because we've not attempted to use multiple permission sets) Also I do want to fix the wild code that's in there lol ... eg. use objects to make it easier to understand what structure is required I've recently just updated a few things for the module, and there's some conflicts now - If you could rebase, I'll test it out and get this merged in |
Hi @Stretch96 ! Thanks for taking a look. I've fixed the conflicts but switched the aws provider version constraint from Cheers! |
Ah yes, you're right @Roberdvs - The
I think I was attempting to be restrictive with the version, to ensure it's only used within the versions it has been tested with ... |
@Roberdvs Could you run a |
Done! Updated also the required_providers block that was using a deprecated format. |
@Stretch96 We also want to apply multiple permission sets to an account now. So fee free to spend some work time on this. |
Coolios I've also added you as an admin on this repo, and @DrizzlyOwl has write so we can develop on this as normal (One of those side-projects that ended up being used Lol) |
Thanks for the PR @Roberdvs 👍 This has been merged now and released - https://github.com/chris-qa-org/terraform-aws-organzation-and-sso/releases/tag/v1.2.0 |
Hi!
While using this module we discovered that adding multiple
managed_policies
inside the permission sets block or adding more than onepermission_set
to groups/users insidegroup_assignments
oruser_assignments
had no effect as it was only picking up 1 single element from the list.This fixes it by calling the merge function on the maps to create a list based on the suggestion from this StackOverflow answer
Tested it in our setup and now it properly adds the missing attachments/assignments.
Also a small refactor to improve code reuse using locals.