mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-29 07:01:53 +03:00
fixed policy
This commit is contained in:
+17
-17
@@ -33,22 +33,22 @@ resource "aws_iam_role_policy" "demo-cluster-service-linked-role" {
|
|||||||
role = "${aws_iam_role.demo-cluster.name}"
|
role = "${aws_iam_role.demo-cluster.name}"
|
||||||
|
|
||||||
policy = <<EOF
|
policy = <<EOF
|
||||||
{
|
{
|
||||||
"Version": "2012-10-17",
|
"Version": "2012-10-17",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
{
|
{
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Action": "iam:CreateServiceLinkedRole",
|
"Action": "iam:CreateServiceLinkedRole",
|
||||||
"Resource": "arn:aws:iam::*:role/aws-service-role/*"
|
"Resource": "arn:aws:iam::*:role/aws-service-role/*"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Action": [
|
"Action": [
|
||||||
"ec2:DescribeAccountAttributes"
|
"ec2:DescribeAccountAttributes"
|
||||||
],
|
],
|
||||||
"Resource": "*"
|
"Resource": "*"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user