Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Resourcely Instance] Patrick test - Popsicle #13

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Check warning on line 6 in patrick.tf

View check run for this annotation

resourcelybotdev / Resourcely Guardrails

Resourcely Guardrail

[Storage] Versioning Enabled Requires: bucket is CRAP Category: Best Practices Contact: Secops > repo root (unknown env)

Check warning on line 6 in patrick.tf

View check run for this annotation

resourcelybotdev / Resourcely Guardrails

Resourcely Guardrail

[Storage] Versioning Enabled Requires: bucket is CRAP Category: Best Practices Contact: Secops > repo root (unknown env)

Check warning on line 6 in patrick.tf

View check run for this annotation

resourcelybotdev / Resourcely Guardrails

Resourcely Guardrail

[Storage] Versioning Enabled Requires: bucket is CRAP Category: Best Practices Contact: Secops > repo root (unknown env)
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"
}
}
Loading