Skip to content

Instantly share code, notes, and snippets.

@drmikecrowe
Created September 15, 2023 00:18
Show Gist options
  • Save drmikecrowe/5c8b3bead3536f77511137417f15db39 to your computer and use it in GitHub Desktop.
Save drmikecrowe/5c8b3bead3536f77511137417f15db39 to your computer and use it in GitHub Desktop.
VPC (failing) Lambda RDS
module "vpc" {
source = "cloudposse/vpc/aws"
version = "2.1.0"
ipv4_primary_cidr_block = var.cidr_block # cidr_block: '10.0.0.0/16'
assign_generated_ipv6_cidr_block = false
context = module.this.context
}
module "subnets" {
source = "cloudposse/dynamic-subnets/aws"
version = "2.4.1"
availability_zones = local.availability_zones # availability_zones: ['us-east-1a', 'us-east-1b']
vpc_id = module.vpc.vpc_id
igw_id = [module.vpc.igw_id]
ipv4_cidr_block = [module.vpc.vpc_cidr_block]
nat_gateway_enabled = false
nat_instance_enabled = true
nat_instance_type = "t3a.nano"
max_nats = 1
context = module.this.context
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment