aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-28 19:19:00 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-28 19:19:00 +0100
commit6de9ae2f55eec21bd2c4f46775598475e71f6463 (patch)
tree8490d78b42a5f6fc2c69828c3d80d15e7437ba3b
parent66f2ced194904126b07729efe9ea237735e42493 (diff)
downloadgovuk-mini-environment-admin-6de9ae2f55eec21bd2c4f46775598475e71f6463.tar
govuk-mini-environment-admin-6de9ae2f55eec21bd2c4f46775598475e71f6463.tar.gz
Specify the mini_environment_up output for the AWS backendrelease_2
-rw-r--r--terraform/aws/mini_environment/main.tf5
1 files changed, 5 insertions, 0 deletions
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"}"
+}
+