aboutsummaryrefslogtreecommitdiff
path: root/app/views/backends
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-03 13:06:30 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-03 14:09:13 +0100
commit93c1c6e5b76ed712f6c5107c6a124025279996d6 (patch)
tree9744ed6a454e8d5ba69657e4ad5fdd699b726b25 /app/views/backends
parentf74331a8e6d5b0ae9c2c73a36ba19730752269aa (diff)
downloadgovuk-mini-environment-admin-93c1c6e5b76ed712f6c5107c6a124025279996d6.tar
govuk-mini-environment-admin-93c1c6e5b76ed712f6c5107c6a124025279996d6.tar.gz
Change how the EFS File System is handled
For the AWS backend. Bring it in to the Terraform configuration for the backend, where previously only the id was known. Also, alter the provisioning so that it can handle an empty EFS file system. This reduces the amount of manual setup required for AWS.
Diffstat (limited to 'app/views/backends')
-rw-r--r--app/views/backends/terraform_aws/new.html.erb28
-rw-r--r--app/views/backends/terraform_aws/show.html.erb29
2 files changed, 0 insertions, 57 deletions
diff --git a/app/views/backends/terraform_aws/new.html.erb b/app/views/backends/terraform_aws/new.html.erb
index 04cab8a..fbd26a1 100644
--- a/app/views/backends/terraform_aws/new.html.erb
+++ b/app/views/backends/terraform_aws/new.html.erb
@@ -125,34 +125,6 @@ License along with the GOV.UK Mini Environment Admin. If not, see
</div>
<div class="form-group form-group-lg">
- <%= f.label(
- :efs_file_system_id,
- 'EFS File System ID',
- class: 'col-sm-4 control-label'
- ) %>
- <div class="col-sm-8">
- <%= f.text_field(
- :efs_file_system_id,
- class: 'form-control',
- placeholder: 'The ID of the EFS File System to use'
- ) %>
- <span class="help-block">
- <p>
- This EFS (Elastic File System) is used for the Guix
- store.
- </p>
- <p>
- It must be used by both this instance of the GOV.UK Mini
- Environment Admin, and the mini environments created
- through this backend, so that store items created
- through this service are available on the mini
- environment machines when they mount this file system.
- </p>
- </span>
- </div>
- </div>
-
- <div class="form-group form-group-lg">
<%= f.label :aws_access_key_id, 'AWS Access Key ID', class: 'col-sm-4 control-label' %>
<div class="col-sm-8">
<%= f.text_field(
diff --git a/app/views/backends/terraform_aws/show.html.erb b/app/views/backends/terraform_aws/show.html.erb
index f542cff..6204d96 100644
--- a/app/views/backends/terraform_aws/show.html.erb
+++ b/app/views/backends/terraform_aws/show.html.erb
@@ -132,35 +132,6 @@ License along with the GOV.UK Mini Environment Admin. If not, see
</div>
<div class="form-group form-group-lg">
- <%= f.label(
- :efs_file_system_id,
- 'EFS File System ID',
- class: 'col-sm-4 control-label'
- ) %>
- <div class="col-sm-8">
- <%= f.text_field(
- :efs_file_system_id,
- class: 'form-control',
- placeholder: 'The ID of the EFS File System to use',
- readonly: true
- ) %>
- <span class="help-block">
- <p>
- This EFS (Elastic File System) is used for the Guix
- store.
- </p>
- <p>
- It must be used by both this instance of the GOV.UK Mini
- Environment Admin, and the mini environments created
- through this backend, so that store items created
- through this service are available on the mini
- environment machines when they mount this file system.
- </p>
- </span>
- </div>
- </div>
-
- <div class="form-group form-group-lg">
<%= f.label :aws_access_key_id, 'AWS Access Key ID', class: 'col-sm-4 control-label' %>
<div class="col-sm-8">
<%= f.text_field(