Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created August 5, 2019 03:09
Show Gist options
  • Select an option

  • Save KyMidd/66d5f2988935ba1746fcda889036fdad to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/66d5f2988935ba1746fcda889036fdad to your computer and use it in GitHub Desktop.
resource "aws_iam_policy" "ado_iam_policy" {
name = "${var.aws_iam_policy_assume_name}"
policy = <<POLICY
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowS3Read",
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": "${aws_s3_bucket.state_bucket.arn}"
},
{
"Sid": "AllowAllPermissions",
"Effect": "Allow",
"Action": [
"*"
],
"Resource": "*"
}
]
}
POLICY
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment