Merge pull request #2165 from TimeIncOSS/fix-iam-examples
docs: Fix IAM assume_role_policy examples
This commit is contained in:
commit
115ea19ab5
|
@ -23,14 +23,13 @@ resource "aws_iam_role" "role" {
|
||||||
path = "/"
|
path = "/"
|
||||||
assume_role_policy = <<EOF
|
assume_role_policy = <<EOF
|
||||||
{
|
{
|
||||||
"Version": "2012-10-17",
|
"Version": "2008-10-17",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": "sts:AssumeRole",
|
||||||
"ec2:Describe*"
|
"Principal": {"AWS": "*"},
|
||||||
],
|
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Resource": "*"
|
"Sid": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,14 +18,13 @@ resource "aws_iam_role_policy" "test_policy" {
|
||||||
role = "${aws_iam_role.test_role.id}"
|
role = "${aws_iam_role.test_role.id}"
|
||||||
policy = <<EOF
|
policy = <<EOF
|
||||||
{
|
{
|
||||||
"Version": "2012-10-17",
|
"Version": "2008-10-17",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": "sts:AssumeRole",
|
||||||
"ec2:Describe*"
|
"Principal": {"AWS": "*"},
|
||||||
],
|
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Resource": "*"
|
"Sid": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue