dome9 / onboarding-scripts

A public repository with scripts and tools for mass / automated onboarding of cloud accounts (AWS,Azure,GCP)
23 stars 26 forks source link

AWS Terraform changes for attaching managed IAM policies #2

Closed fn123fn123 closed 6 years ago

fn123fn123 commented 6 years ago

Changed the IAM resource for attaching AWS managed policies from aws_iam_policy_attachment to aws_iam_role_policy_attachment. The former method wants exclusive attachment to the policy and will revoke all other attachments.

Also, fixed the readonly-policy.json which was failing validation (parsing error).