From d70a5aa14bccf5581add0e9b51bec3ece123ed93 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Tue, 3 Mar 2026 15:44:25 -0500 Subject: [PATCH] add subnet to windows --- modules/ec2/linux/main.tf | 2 +- modules/ec2/windows/locals.tf | 1 + modules/ec2/windows/main.tf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ec2/linux/main.tf b/modules/ec2/linux/main.tf index efc1f5e..378f098 100644 --- a/modules/ec2/linux/main.tf +++ b/modules/ec2/linux/main.tf @@ -3,7 +3,7 @@ # Provisions an EC2 instance via Service Catalog # This is a thin wrapper around the product module with EC2-specific parameters -module "ec2" { +module "ec2-linux" { source = "../../product" # Service Catalog configuration diff --git a/modules/ec2/windows/locals.tf b/modules/ec2/windows/locals.tf index 16368f7..f5baa2c 100644 --- a/modules/ec2/windows/locals.tf +++ b/modules/ec2/windows/locals.tf @@ -17,6 +17,7 @@ locals { # Add networking parameters if available network_parameters = local.vpc_id != null ? { VpcId = local.vpc_id + SubnetId = data.aws_subnets.subnets[0].ids != null && length(data.aws_subnets.subnets[0].ids) > 0 ? data.aws_subnets.subnets[0].ids[0] : null AZName = local.az_name } : {} diff --git a/modules/ec2/windows/main.tf b/modules/ec2/windows/main.tf index efc1f5e..323ff58 100644 --- a/modules/ec2/windows/main.tf +++ b/modules/ec2/windows/main.tf @@ -3,7 +3,7 @@ # Provisions an EC2 instance via Service Catalog # This is a thin wrapper around the product module with EC2-specific parameters -module "ec2" { +module "ec2-windows" { source = "../../product" # Service Catalog configuration