Skip to content

Commit bd8a81d

Browse files
fix lint and security error
1 parent 8cf79b1 commit bd8a81d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/logging_configuration/local.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# tflint-ignore: terraform_unused_declarations
21
locals {
2+
# tflint-ignore: terraform_unused_declarations
33
cloudwatch_log_group_name = var.enable_logging ? (var.override_cloudwatch_log_group_name != "" ? var.override_cloudwatch_log_group_name : aws_cloudwatch_log_group.cloudwatch_log_group[0].arn) : ""
44
account_id = data.aws_caller_identity.current.account_id
55
aws_region = data.aws_region.current.name

modules/logging_configuration/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ resource "aws_verifiedaccess_instance_logging_configuration" "this" {
2828

2929
}
3030

31-
#checkov:skip=CKV_AWS_338:Ensure CloudWatch log groups retains logs for at least 1 year
3231
resource "aws_cloudwatch_log_group" "cloudwatch_log_group" {
32+
#checkov:skip=CKV_AWS_338:Ensure CloudWatch log groups retains logs for at least 1 year
3333
count = var.create_cloudwatch_log_group && var.enable_logging ? 1 : 0
3434
name = var.cloudwatch_log_group_name
3535
kms_key_id = aws_kms_key.log_encryption_key.arn

0 commit comments

Comments
 (0)