-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable access logs #41
Conversation
loadbalancer.tf
Outdated
resource "aws_s3_bucket" "artifacts" { | ||
bucket = "${data.aws_caller_identity.current.account_id}-${var.name}-artifacts" | ||
force_destroy = true | ||
|
||
#checkov:skip=CKV_AWS_18: AWS Access logging not enabled on S3 buckets | ||
#checkov:skip=CKV2_AWS_61: An S3 bucket must have a lifecycle configuration | ||
#Above rules are for deprecated properties. | ||
|
||
#checkov:skip=CKV_AWS_144: S3 bucket cross-region replication disabled | ||
#This bucket is used for storing access logs for the load balancer, and does not require another bucket to store this bucket's access logs. | ||
|
||
#checkov:skip=CKV_AWS_21: AWS S3 Object Versioning is disabled | ||
#The items in this S3 bucket do not require versioning. | ||
|
||
#checkov:skip=CKV2_AWS_62: S3 buckets do not have event notifications enabled | ||
#The items in this s3 bucket are access logs and do not require any event notifications to be sent anywhere. | ||
} |
Check warning
Code scanning / checkov
Ensure that S3 buckets are encrypted with KMS by default Warning
loadbalancer.tf
Outdated
resource "aws_s3_bucket" "artifacts" { | ||
bucket = "${data.aws_caller_identity.current.account_id}-${var.name}-artifacts" | ||
force_destroy = true | ||
|
||
#checkov:skip=CKV_AWS_18: AWS Access logging not enabled on S3 buckets | ||
#checkov:skip=CKV2_AWS_61: An S3 bucket must have a lifecycle configuration | ||
#Above rules are for deprecated properties. | ||
|
||
#checkov:skip=CKV_AWS_144: S3 bucket cross-region replication disabled | ||
#This bucket is used for storing access logs for the load balancer, and does not require another bucket to store this bucket's access logs. | ||
|
||
#checkov:skip=CKV_AWS_21: AWS S3 Object Versioning is disabled | ||
#The items in this S3 bucket do not require versioning. | ||
|
||
#checkov:skip=CKV2_AWS_62: S3 buckets do not have event notifications enabled | ||
#The items in this s3 bucket are access logs and do not require any event notifications to be sent anywhere. | ||
} |
Check warning
Code scanning / checkov
Ensure S3 buckets should have event notifications enabled Warning
loadbalancer.tf
Outdated
resource "aws_s3_bucket" "artifacts" { | ||
bucket = "${data.aws_caller_identity.current.account_id}-${var.name}-artifacts" | ||
force_destroy = true | ||
|
||
#checkov:skip=CKV_AWS_18: AWS Access logging not enabled on S3 buckets | ||
#checkov:skip=CKV2_AWS_61: An S3 bucket must have a lifecycle configuration | ||
#Above rules are for deprecated properties. | ||
|
||
#checkov:skip=CKV_AWS_144: S3 bucket cross-region replication disabled | ||
#This bucket is used for storing access logs for the load balancer, and does not require another bucket to store this bucket's access logs. | ||
|
||
#checkov:skip=CKV_AWS_21: AWS S3 Object Versioning is disabled | ||
#The items in this S3 bucket do not require versioning. | ||
|
||
#checkov:skip=CKV2_AWS_62: S3 buckets do not have event notifications enabled | ||
#The items in this s3 bucket are access logs and do not require any event notifications to be sent anywhere. | ||
} |
Check warning
Code scanning / checkov
Ensure all data stored in the S3 bucket have versioning enabled Warning
loadbalancer.tf
Outdated
resource "aws_s3_bucket" "artifacts" { | ||
bucket = "${data.aws_caller_identity.current.account_id}-${var.name}-artifacts" | ||
force_destroy = true | ||
|
||
#checkov:skip=CKV_AWS_18: AWS Access logging not enabled on S3 buckets | ||
#checkov:skip=CKV2_AWS_61: An S3 bucket must have a lifecycle configuration | ||
#Above rules are for deprecated properties. | ||
|
||
#checkov:skip=CKV_AWS_144: S3 bucket cross-region replication disabled | ||
#This bucket is used for storing access logs for the load balancer, and does not require another bucket to store this bucket's access logs. | ||
|
||
#checkov:skip=CKV_AWS_21: AWS S3 Object Versioning is disabled | ||
#The items in this S3 bucket do not require versioning. | ||
|
||
#checkov:skip=CKV2_AWS_62: S3 buckets do not have event notifications enabled | ||
#The items in this s3 bucket are access logs and do not require any event notifications to be sent anywhere. | ||
} |
Check warning
Code scanning / checkov
Ensure that S3 bucket has cross-region replication enabled Warning
loadbalancer.tf
Outdated
resource "aws_s3_bucket" "artifacts" { | ||
bucket = "${data.aws_caller_identity.current.account_id}-${var.name}-artifacts" | ||
force_destroy = true | ||
|
||
#checkov:skip=CKV_AWS_18: AWS Access logging not enabled on S3 buckets | ||
#checkov:skip=CKV2_AWS_61: An S3 bucket must have a lifecycle configuration | ||
#Above rules are for deprecated properties. | ||
|
||
#checkov:skip=CKV_AWS_144: S3 bucket cross-region replication disabled | ||
#This bucket is used for storing access logs for the load balancer, and does not require another bucket to store this bucket's access logs. | ||
|
||
#checkov:skip=CKV_AWS_21: AWS S3 Object Versioning is disabled | ||
#The items in this S3 bucket do not require versioning. | ||
|
||
#checkov:skip=CKV2_AWS_62: S3 buckets do not have event notifications enabled | ||
#The items in this s3 bucket are access logs and do not require any event notifications to be sent anywhere. | ||
} |
Check warning
Code scanning / checkov
Ensure the S3 bucket has access logging enabled Warning
loadbalancer.tf
Outdated
resource "aws_s3_bucket" "artifacts" { | ||
bucket = "${data.aws_caller_identity.current.account_id}-${var.name}-artifacts" | ||
force_destroy = true | ||
|
||
#checkov:skip=CKV_AWS_18: AWS Access logging not enabled on S3 buckets | ||
#checkov:skip=CKV2_AWS_61: An S3 bucket must have a lifecycle configuration | ||
#Above rules are for deprecated properties. | ||
|
||
#checkov:skip=CKV_AWS_144: S3 bucket cross-region replication disabled | ||
#This bucket is used for storing access logs for the load balancer, and does not require another bucket to store this bucket's access logs. | ||
|
||
#checkov:skip=CKV_AWS_21: AWS S3 Object Versioning is disabled | ||
#The items in this S3 bucket do not require versioning. | ||
|
||
#checkov:skip=CKV2_AWS_62: S3 buckets do not have event notifications enabled | ||
#The items in this s3 bucket are access logs and do not require any event notifications to be sent anywhere. | ||
} |
Check warning
Code scanning / checkov
Ensure that an S3 bucket has a lifecycle configuration Warning
💰 Infracost reportMonthly estimate generated
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options. Estimate details
|
This pr closes #40