how to attach multiple IAM policies to an IAM role
892 views
Skip to first unread message
Deepak Prasad
unread,
Jun 8, 2017, 8:53:30 AM6/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Terraform
Hi All,
I want to attach more than one IAM policy to a role. Both "policy" and "policy_arn" for aws_iam_role_policy or aws_iam_policy_attachment are taking single value. I am wondering how do i pass multiple IAM policies to them?
Thanks,
Deepak
Andrew Langhorn
unread,
Jun 8, 2017, 10:48:32 AM6/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Terraform
It might not be the most elegant thing to do, but have you tried using the aws_iam_policy_attachment resource multiple times, one for each policy you're trying to attach to the role?