Created
August 5, 2019 03:09
-
-
Save KyMidd/66d5f2988935ba1746fcda889036fdad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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