File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ module "vpc" {
22 count = var. create_vpc ? 1 : 0
33 source = " ./modules/vpc"
44
5- cidr_block = var. vpc_cidr_block
6- enable_flow_logs = var. enable_flow_logs
7- enable_ipv6 = var. enable_ipv6
8- name = var. name
9- namespace = var. namespace
10- tags = local. vpc_tags
5+ cidr_block = var. vpc_cidr_block
6+ enable_flow_logs = var. enable_flow_logs
7+ enable_ipv6 = var. enable_ipv6
8+ name = var. name
9+ namespace = var. namespace
10+ tags = local. vpc_tags
11+ flow_logs_retention_days = var. flow_logs_retention_days
1112}
1213
1314data "aws_vpc" "this" {
Original file line number Diff line number Diff line change @@ -94,3 +94,9 @@ variable "vpc_tags" {
9494 description = " Tags to be applied to the VPC"
9595 default = {}
9696}
97+
98+ variable "flow_logs_retention_days" {
99+ description = " Number of days to retain VPC Flow Logs in CloudWatch." # Only applies when enable_flow_logs is true.
100+ type = number
101+ default = null # null = retain forever
102+ }
You can’t perform that action at this time.
0 commit comments