-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update s3.tf #66
base: main
Are you sure you want to change the base?
Update s3.tf #66
Conversation
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.
Prisma Cloud has found errors in this PR ⬇️
@@ -16,6 +16,10 @@ resource "aws_s3_bucket" "default" { | |||
} | |||
} | |||
|
|||
resource "aws_ebs_volume" "v" { | |||
|
|||
} |
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.
} | |
encrypted = true | |
} |
AWS EBS volumes are not encrypted
Resource: aws_ebs_volume.v | ID: BC_AWS_GENERAL_3
Description
Encrypting EBS volumes ensures that replicated copies of your images are secure even if they are accidentally exposed. AWS EBS encryption uses AWS KMS customer master keys (CMK) when creating encrypted volumes and snapshots. Storing EBS volumes in their encrypted state reduces the risk of data exposure or data loss. We recommend you encrypt all data stored in the EBS.Benchmarks
- PCI-DSS V3.2.1 3.4
- PCI-DSS V3.2 3
- NIST-800-53 SC-2
- FEDRAMP (MODERATE) SC-28
@@ -16,6 +16,10 @@ resource "aws_s3_bucket" "default" { | |||
} | |||
} | |||
|
|||
resource "aws_ebs_volume" "v" { |
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.
AWS EBS Volume not encrypted using Customer Managed Key
Resource: aws_ebs_volume.v | ID: BC_AWS_GENERAL_109
How to Fix
resource "aws_ebs_volume" "example" {
availability_zone = "us-west-2a"
size = 40
+ kms_key_id = "ckv_kms"
tags = {
Name = "HelloWorld"
}
}
No description provided.