Skip to content

Commit

Permalink
Merge pull request #2 from asicsdigital/casper-add-prefix-condition
Browse files Browse the repository at this point in the history
Added Prefix Condition per SRE-88
  • Loading branch information
Falpangaea authored Jan 14, 2020
2 parents 531b13c + e1b27a3 commit 018a2a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions iam-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ data "aws_iam_policy_document" "user_policy" {
resources = [
"${local.bucket_arn}",
]

condition {
test = "ForAnyValue:StringLike"
variable = "s3:prefix"

values = [
"${var.prefix}*",
]
}
}
}

Expand Down

0 comments on commit 018a2a8

Please sign in to comment.