This message was deleted.
# aws
s
This message was deleted.
l
Yes. You need to user UserGroupMembership to achieve this. This is because of the AWS SDK, not Pulumi.
aws_iam_group_membership will conflict with itself if used more than once with the same group. To non-exclusively manage the users in a group, see the aws_iam_user_group_membership
f
Thank you so much @little-cartoon-10569, that explains everything! 😁 🙏
👍 1
…and it’s much simpler for my use-case, because I can attach all groups to my user using a single resource, instead of many! 🎉
Unfortunately, I don’t see an equivalent of that for attaching multiple policies to a group using a single resource, correct? 😕
l
Normally, a single policy with multiple statements is used for that sort of thing...
But no, there is no one-to-many group:policy mapping.
Loops to the rescue!