From 1af73c9b0bfccefdec09878860d4c94c9b70da39 Mon Sep 17 00:00:00 2001 From: Soren Martius Date: Tue, 11 Jun 2024 20:52:04 +0200 Subject: [PATCH] feat: add a new VPC in dev --- stacks/dev/main.tf | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/stacks/dev/main.tf b/stacks/dev/main.tf index 2720016..1a2dd12 100644 --- a/stacks/dev/main.tf +++ b/stacks/dev/main.tf @@ -1 +1,18 @@ -resource "null_resource" "dev" {} +module "vpc" { + source = "terraform-aws-modules/vpc/aws" + + name = "platform-con-vpc" + cidr = "10.0.0.0/16" + + azs = ["eu-west-1a", "eu-west-1b", "eu-west-1c"] + private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] + public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] + + enable_nat_gateway = true + enable_vpn_gateway = true + + tags = { + Terraform = "true" + Environment = "dev" + } +}