Skip to content

Commit

Permalink
[Resourcely Instance] Patrick test - Popsicle
Browse files Browse the repository at this point in the history
  • Loading branch information
RoxKilly committed Aug 23, 2024
1 parent 7fd0dbe commit 4d5793f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions patrick.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
resource "aws_s3_bucket" "resourcely-patrick_xfvxybJnMRN2NEYi" {
bucket = "resourcely-patrick"

Check warning on line 2 in patrick.tf

View check run for this annotation

resourcelybotdev / Resourcely Guardrails

Resourcely Guardrail

[Storage] Versioning Enabled Requires: bucket STARTSWITH "foo-clone-edit" Category: Best Practices Contact: GhApprovers > repo root (unknown env)
}

resource "aws_s3_bucket_public_access_block" "resourcely-patrick_xfvxybJnMRN2NEYi" {
bucket = aws_s3_bucket.resourcely-patrick_xfvxybJnMRN2NEYi.id
block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}

resource "aws_s3_bucket_ownership_controls" "resourcely-patrick_xfvxybJnMRN2NEYi" {
bucket = aws_s3_bucket.resourcely-patrick_xfvxybJnMRN2NEYi.id

rule {
object_ownership = "BucketOwnerEnforced"
}
}

resource "aws_s3_bucket_versioning" "resourcely-patrick_xfvxybJnMRN2NEYi" {
bucket = aws_s3_bucket.resourcely-patrick_xfvxybJnMRN2NEYi.id

versioning_configuration {
status = "Enabled"
}
}

0 comments on commit 4d5793f

Please sign in to comment.