terraform-aws-ses icon indicating copy to clipboard operation
terraform-aws-ses copied to clipboard

Use IAM role and permissions instead of a user/group

Open nitrocode opened this issue 4 years ago • 4 comments

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

Use IAM role and permissions instead of a user/group (if possible)

nitrocode avatar Oct 27 '21 18:10 nitrocode

@nitrocode Any updates on fixing the merge conflict so cloudposse can merge into a future release? Thanks.

brilong avatar Sep 12 '22 15:09 brilong

@brilong That PR is untested and was in a draft mode. I closed the PR for now until we are ready to work on it again. I'm unsure if a role can be used in place of the iam user but if it can, then we'd love to set that up and create a working golang test case for it.

nitrocode avatar Sep 12 '22 16:09 nitrocode

I needed SES with IAM role in my environment, so I pulled your iam-role branch and only made two changes to get it working with no IAM user or group being created and the appropriate role being created.

I updated module cloudposse/iam-role/aws to version 0.16.2 and I passed that module principals = { "my principals" } map in order to get past an error with malformed JSON policy document. That is all that was required to get it working.

brilong avatar Sep 15 '22 14:09 brilong

@brilong thank you. I bumped up the iam role module to 0.16.2 and exposed var.principals. Please test that branch and let me know if it works for you.

nitrocode avatar Sep 15 '22 21:09 nitrocode