File tree 3 files changed +8
-0
lines changed
examples/complete-vpc-with-vpn
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -35,4 +35,5 @@ module "vpc" {
35
35
vpn_server_instance_type = " t3a.small"
36
36
flow_log_max_aggregation_interval = 60
37
37
flow_log_cloudwatch_log_group_retention_in_days = 90
38
+ flow_log_cloudwatch_log_group_kms_key_arn = " " # Enter your kms key arn
38
39
}
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ module "vpc" {
63
63
create_flow_log_cloudwatch_log_group = local. create_flow_log_cloudwatch_log_group
64
64
flow_log_max_aggregation_interval = var. flow_log_max_aggregation_interval
65
65
flow_log_cloudwatch_log_group_retention_in_days = var. flow_log_cloudwatch_log_group_retention_in_days
66
+ flow_log_cloudwatch_log_group_kms_key_id = var. flow_log_cloudwatch_log_group_kms_key_arn
66
67
enable_ipv6 = local. enable_ipv6
67
68
# assign_ipv6_address_on_creation = local.assign_ipv6_address_on_creation
68
69
public_subnet_assign_ipv6_address_on_creation = local. public_subnet_assign_ipv6_address_on_creation
Original file line number Diff line number Diff line change @@ -191,3 +191,9 @@ variable "intra_subnet_assign_ipv6_address_on_creation" {
191
191
type = bool
192
192
default = null
193
193
}
194
+
195
+ variable "flow_log_cloudwatch_log_group_kms_key_arn" {
196
+ description = " The ARN of the KMS Key to use when encrypting log data for VPC flow logs"
197
+ type = string
198
+ default = null
199
+ }
You can’t perform that action at this time.
0 commit comments