Skip to content

Commit

Permalink
fixed policy
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Aug 2, 2018
1 parent 75c7ca9 commit c8d558d
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions eks-demo/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ resource "aws_iam_role_policy" "demo-cluster-service-linked-role" {
role = "${aws_iam_role.demo-cluster.name}"

policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "iam:CreateServiceLinkedRole",
"Resource": "arn:aws:iam::*:role/aws-service-role/*"
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeAccountAttributes"
],
"Resource": "*"
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "iam:CreateServiceLinkedRole",
"Resource": "arn:aws:iam::*:role/aws-service-role/*"
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeAccountAttributes"
],
"Resource": "*"
}
]
}
EOF
}

0 comments on commit c8d558d

Please sign in to comment.