Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Dec 13, 2021
1 parent a12b360 commit b51d47f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions agents/awsEc2/agent.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ resource "aws_instance" "agent" {
}

locals {
_instances = var.spot ? aws_spot_instance_request.agent : aws_instance.agent
# IP address, needs to handle the case instance was terminated by timeout
ip_address = length(local._instances) > 0 ? lookup(local._instances[0], "public_ip") : null
ip_address = length(local._ip_address) == 0 ? null : local._ip_address[0]
_ip_address = flatten([
aws_spot_instance_request.agent[*].public_ip,
aws_instance.agent[*].public_ip
])
user = local.image["user"]
image_version = data.aws_ami.agent.name
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.3.0
v1.3.1

0 comments on commit b51d47f

Please sign in to comment.