Skip to content

Commit

Permalink
feat: add output for ec2 azs
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed Aug 10, 2023
1 parent eb52e19 commit 5ee542f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/nomad-clients/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ output "nomad_client_ec2" {
value = var.client_type == "ec2" ? aws_instance.nomad_client[*].id : []
}

output "nomad_client_ec2_availability_zones" {
description = "Availability zones for the Nomad client nodes"
value = var.client_type == "ec2" ? aws_instance.nomad_client[*].availability_zone : []
}

output "nomad_client_iam_role_arn" {
description = "ARN of the IAM role for the Nomad client nodes"
value = var.iam_instance_profile == "" ? aws_iam_role.nomad_client[0].arn : ""
Expand Down

0 comments on commit 5ee542f

Please sign in to comment.