Skip to content

Commit 1bd9028

Browse files
Merge pull request #18 from ShibraAmin/main
Updated create_flow_log_cloudwatch_log_group condition
2 parents c4fd153 + 6333ff3 commit 1bd9028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ locals {
3030
database_subnets = concat(local.database_subnets_native, flatten(local.secondary_database_subnets))
3131
single_nat_gateway = var.one_nat_gateway_per_az == true ? false : true
3232
create_database_subnet_route_table = var.database_subnet_enabled
33-
create_flow_log_cloudwatch_log_group = var.flow_log_enabled == true ? true : false
33+
create_flow_log_cloudwatch_log_group = var.flow_log_enabled == true || var.flow_log_cloudwatch_log_group_skip_destroy == true ? true : false
3434
is_supported_arch = data.aws_ec2_instance_type.arch.supported_architectures[0] == "arm64" ? false : true # for VPN Instance
3535
nacl_allow_vpc_access_rule = [{
3636
rule_no = 97

0 commit comments

Comments
 (0)