Skip to content

Commit

Permalink
Add new output variables (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
hskiba authored Jan 25, 2023
1 parent ad867ae commit 2204a07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion instances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ locals {
}

module "spot_requests" {
source = "frgrisk/ec2-spot/aws"
source = "frgrisk/ec2-spot/aws"
version = "~>0.3.2"

for_each = var.spot_requests
Expand Down
15 changes: 15 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,22 @@ output "private_subnets" {
value = [for k, v in aws_subnet.private : v.id]
}

output "private_subnets_by_az" {
description = "Map of private subnets by availability zone"
value = aws_subnet.private
}

output "public_subnets" {
description = "List of IDs of public subnets"
value = [for k, v in aws_subnet.public : v.id]
}

output "public_subnets_by_az" {
description = "Map of public subnets by availability zone"
value = aws_subnet.public
}

output "inter_environment_security_group_id" {
description = "ID of the inter-environment security group"
value = module.inter_environment_traffic.security_group_id
}

0 comments on commit 2204a07

Please sign in to comment.