Skip to content

Commit

Permalink
[Resourcely Instance] Patrick test - Pineapple
Browse files Browse the repository at this point in the history
  • Loading branch information
RoxKilly committed Nov 6, 2024
1 parent 785c13e commit 03ba205
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"
}

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 03ba205

Please sign in to comment.