aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-23 22:51:48 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-23 22:51:48 +0100
commite5c3d2979282404e7d89b4facc4e4f138aa2ae1d (patch)
treeadb62654cab677a40ad45ffc4423dd723e0bd1c4 /app/views
parent1026a19ee13805c6cb44c676f0b648b06bf2efd2 (diff)
downloadgovuk-mini-environment-admin-e5c3d2979282404e7d89b4facc4e4f138aa2ae1d.tar
govuk-mini-environment-admin-e5c3d2979282404e7d89b4facc4e4f138aa2ae1d.tar.gz
Support 'Stopping' the AWS backend
Which means just destroying the build machine.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/backends/terraform_aws/show.html.erb13
1 files changed, 13 insertions, 0 deletions
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
@@ -85,6 +85,19 @@ License along with the GOV.UK Mini Environment Admin. If not, see
</p>
</li>
<li class="list-group-item">
+ <%= submit_tag("Stop",
+ role: 'button',
+ style: 'margin-bottom: 5px;',
+ class: 'btn btn-lg btn-warning btn-block')
+ %>
+ <p class="list-group-item-text">
+ 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.
+ </p>
+ </li>
+ <li class="list-group-item">
<%= submit_tag("Destroy",
role: 'button',
style: 'margin-bottom: 5px;',