Skip to content

Commit

Permalink
add subnet to windows
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Mar 3, 2026
1 parent 1880726 commit d70a5aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/ec2/linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions modules/ec2/windows/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
} : {}

Expand Down
2 changes: 1 addition & 1 deletion modules/ec2/windows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d70a5aa

Please sign in to comment.