former2 icon indicating copy to clipboard operation
former2 copied to clipboard

Support aws_iam_user_policy_attachment resource

Open Georgeforman3 opened this issue 3 years ago • 3 comments

For IAM user there's a difference between Terraform and CloudFormation for attached policies. In CFN there's an 'AttachedPolicies' property on the IAM::User resource but for Terraform there's another resource called 'aws_iam_user_policy_attachment'.

Can you please advise how to support this? I want to generate all of my IAM users with their policies attached.

Georgeforman3 avatar Aug 11 '22 08:08 Georgeforman3

Hi @Georgeforman3 , is there an example I can look at with the same pattern? Where one needs to use 2 resource types for Terraform but only 1 for Cfn?

Georgeforman3 avatar Aug 15 '22 06:08 Georgeforman3

Hey @Georgeforman3,

It's probably unlikely the current model will support that. I'm more likely to add a new datatable type "IAM User Policy Attachments" or similar. Will get to it soon, just working on a few other things (though feel free to give it a shot and PR yourself).

iann0036 avatar Aug 17 '22 07:08 iann0036