fixed policy

This commit is contained in:
Edward Viaene
2018-08-02 11:13:47 +00:00
parent 75c7ca9908
commit c8d558d4ec
+17 -17
View File
@@ -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
}