From 4d5793fd1b4559c9e4d0792496d17dccf865e08f Mon Sep 17 00:00:00 2001 From: RoxKilly Date: Fri, 23 Aug 2024 16:31:54 -0400 Subject: [PATCH] [Resourcely Instance] Patrick test - Popsicle --- patrick.tf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 patrick.tf diff --git a/patrick.tf b/patrick.tf new file mode 100644 index 0000000..bd52788 --- /dev/null +++ b/patrick.tf @@ -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" + } +}