Skip to content

Instantly share code, notes, and snippets.

@dmlayton
Created May 5, 2020 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmlayton/51d20a504ebd38546f8ae6454fc1a96f to your computer and use it in GitHub Desktop.
Save dmlayton/51d20a504ebd38546f8ae6454fc1a96f to your computer and use it in GitHub Desktop.
data "aws_iam_policy_document" "test_client" {
statement {
actions = [
"s3:ListBucket",
"s3:GetBucketLocation"
]
resources = [aws_s3_bucket.test_client_bucket.arn]
}
statement {
actions = [
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:DeleteObject"
]
resources = [format("%s/*", aws_s3_bucket.test_client_bucket.arn)]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment