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).
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).