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

Add check for ApplyServerSideEncryptionByDefault #1080

Closed
alo-id opened this issue Mar 10, 2022 · 0 comments · Fixed by #1494
Closed

Add check for ApplyServerSideEncryptionByDefault #1080

alo-id opened this issue Mar 10, 2022 · 0 comments · Fixed by #1494
Labels
enhancement New feature or request

Comments

@alo-id
Copy link

alo-id commented Mar 10, 2022

I would like to check my terraform code when I add server side encryption by default

resource "aws_s3_bucket" "bucket" {
  bucket = "my-test-bucket-123"
}

resource "aws_s3_bucket_server_side_encryption_configuration" "encryption" {
  bucket = aws_s3_bucket.bucket.bucket

  rule {
    apply_server_side_encryption_by_default {
      sse_algorithm = "AES256"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants