Skip to content

Commit

Permalink
sid and statement attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashle001 committed Oct 22, 2020
1 parent a37fcc8 commit d3b455f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,14 @@ data "aws_iam_policy_document" "this" {
}
}
statement {
sid = "IPAddressRestriction"
sid = "RemoteAccessBucketRestrictions"
effect = "Deny"
actions = ["s3:*"]
principals {
type = "AWS"
identifiers = ["*"]
}
resources = [aws_s3_bucket.this.arn, "${aws_s3_bucket.this.arn}/*"]
dynamic "condition" {
for_each = local.s3_bucket_conditions
iterator = c
Expand Down

0 comments on commit d3b455f

Please sign in to comment.