From e5c3d2979282404e7d89b4facc4e4f138aa2ae1d Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 23 Jun 2018 22:51:48 +0100 Subject: Support 'Stopping' the AWS backend Which means just destroying the build machine. --- app/views/backends/terraform_aws/show.html.erb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/views') diff --git a/app/views/backends/terraform_aws/show.html.erb b/app/views/backends/terraform_aws/show.html.erb index 6a576ab..0160798 100644 --- a/app/views/backends/terraform_aws/show.html.erb +++ b/app/views/backends/terraform_aws/show.html.erb @@ -84,6 +84,19 @@ License along with the GOV.UK Mini Environment Admin. If not, see is setup to create new mini environments.

+
  • + <%= submit_tag("Stop", + role: 'button', + style: 'margin-bottom: 5px;', + class: 'btn btn-lg btn-warning btn-block') + %> +

    + Run Terraform to stop this backend, terminating the + build machine used to build new mini + environments. Existing environments will continue to + run, but new environments cannot be created. +

    +
  • <%= submit_tag("Destroy", role: 'button', -- cgit v1.2.3