Skip to content
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

feat: Add VPC flow logs option + s3 https-only policy #322

Merged
merged 16 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/networking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module "vpc" {
elasticache_subnets = var.create_elasticache_subnet ? var.elasticache_subnet_cidrs : []
enable_dns_hostnames = true
enable_dns_support = true
enable_vpc_flow_logs = var.enable_vpc_flow_logs
enable_nat_gateway = true
enable_vpn_gateway = var.enable_vpn_gateway
manage_default_security_group = true
Expand All @@ -46,4 +47,4 @@ resource "aws_vpc_endpoint" "clickhouse" {
vpc_endpoint_type = "Interface"
subnet_ids = module.vpc.private_subnets
private_dns_enabled = true
}
}
6 changes: 6 additions & 0 deletions modules/networking/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ variable "create_elasticache_subnet" {
default = false
}

variable "enable_vpc_flow_logs" {
description = "Controls whether VPC Flow Logs are enabled"
type = bool
default = false
}

variable "enable_vpn_gateway" {
type = bool
description = "(Optional) Should be true if you want to create a new VPN Gateway resource and attach it to the VPC."
Expand Down
Loading