From 3dd15a4bb8c81db0f7a8929774bf86e5d44a5659 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 28 Nov 2021 15:24:44 -0800 Subject: [PATCH] + Olympus subnet definition --- infra/subnet.tf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/infra/subnet.tf b/infra/subnet.tf index a773e21..00b5b2b 100644 --- a/infra/subnet.tf +++ b/infra/subnet.tf @@ -1,15 +1,28 @@ # This script represents the subnet structure for Crete(primary subnet) +variable "olympus_cidr" {} variable "crete_cidr" {} variable "athens_availability_zone" {} +# Crete will serve as the private subnet with internal services resource "aws_subnet" "crete_subnet" { vpc_id = aws_vpc.athens_vpc.id + # 10.0.1.0/24 cidr_block = var.crete_cidr availability_zone = var.athens_availability_zone tags = { - Name = "Create Subnet" + Name = "Crete Subnet - Internal" } } +# Olympus will be the subnet that contains any/all public facing services +resource "aws_subnet" "olympus_subnet" { + vpc_id = aws_vpc.athens_vpc.id + # 10.0.2.0/24 + cidr_block = var.olympus_cidr + + tags = { + Name = "Olympus Subnet - Public Facing" + } +}