-
-
Notifications
You must be signed in to change notification settings - Fork 839
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
Removing policy attribute for S3 bucket #86
Conversation
Fixing a bug where the bucket policy would flip-flop on Terraform apply if `var.policy` and any of `var.allow_ssl_requests_only`, `var.allow_encrypted_uploads_only` were set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bridgecrew has found 1 infrastructure configuration error in this PR ⬇️
@@ -10,7 +10,6 @@ resource "aws_s3_bucket" "default" { | |||
bucket = local.bucket_name | |||
acl = try(length(var.grants), 0) == 0 ? var.acl : null | |||
force_destroy = var.force_destroy | |||
policy = var.policy | |||
tags = module.this.tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error Description: Ensure all data stored in the S3 bucket is securely encrypted at rest
Category: Storage | Severity: HIGH
Resource: aws_s3_bucket [default], lines: 5 - 196
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this already defined https://github.com/cloudposse/terraform-aws-s3-bucket/blob/master/main.tf#L99 ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bridcrew does not understand dynamics with enable variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add : BC_AWS_S3_14 to the bridgecrew comments on the top of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Thanks @jamengual
/test all |
/test all |
1 similar comment
/test all |
what
var.policy
and any ofvar.allow_ssl_requests_only
,var.allow_encrypted_uploads_only
were setwhy
aws_s3_bucket.policy
attribute was competing with theaws_s3_bucket_policy
resource