From 6de9ae2f55eec21bd2c4f46775598475e71f6463 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 28 Jun 2018 19:19:00 +0100 Subject: Specify the mini_environment_up output for the AWS backend --- terraform/aws/mini_environment/main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terraform/aws/mini_environment/main.tf b/terraform/aws/mini_environment/main.tf index 4247f8b..a0c5045 100644 --- a/terraform/aws/mini_environment/main.tf +++ b/terraform/aws/mini_environment/main.tf @@ -146,3 +146,8 @@ output "spot_bid_status" { output "spot_request_status" { value = "${aws_spot_instance_request.main.spot_request_state}" } + +output "mini_environment_up" { + value = "${aws_spot_instance_request.main.spot_bid_status == "fulfilled"}" +} + -- cgit v1.2.3