Skip to content
Merged
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
18 changes: 18 additions & 0 deletions code/code/build/s3.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
provider "aws" {
region = "us-west-2"
}

resource "aws_s3_bucket" "dev_s3" {
bucket_prefix = "dev-"

tags = {
Environment = "Dev"
}
}
Comment on lines +5 to +11

Check failure

Code scanning / checkov

Ensure that S3 bucket has a Public Access block Error

Ensure that S3 bucket has a Public Access block
Comment on lines +5 to +11

Check failure

Code scanning / checkov

Ensure S3 buckets should have event notifications enabled Error

Ensure S3 buckets should have event notifications enabled
Comment on lines +5 to +11

Check failure

Code scanning / checkov

Ensure that S3 bucket has cross-region replication enabled Error

Ensure that S3 bucket has cross-region replication enabled
Comment on lines +5 to +11

Check failure

Code scanning / checkov

Ensure that S3 buckets are encrypted with KMS by default Error

Ensure that S3 buckets are encrypted with KMS by default
Comment on lines +5 to +11

Check failure

Code scanning / checkov

Ensure that an S3 bucket has a lifecycle configuration Error

Ensure that an S3 bucket has a lifecycle configuration
Comment on lines +5 to +11

Check failure

Code scanning / checkov

Ensure the S3 bucket has access logging enabled Error

Ensure the S3 bucket has access logging enabled
Comment on lines +5 to +11

Check failure

Code scanning / checkov

Ensure all data stored in the S3 bucket have versioning enabled Error

Ensure all data stored in the S3 bucket have versioning enabled

resource "aws_s3_bucket_ownership_controls" "dev_s3" {
bucket = aws_s3_bucket.dev_s3.id
rule {
object_ownership = "BucketOwnerPreferred"
}
}
Comment on lines +13 to +18

Check failure

Code scanning / checkov

Ensure access control lists for S3 buckets are disabled Error

Ensure access control lists for S3 buckets are disabled
Loading