aboutsummaryrefslogtreecommitdiff
path: root/app/views/backends
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-03 21:34:08 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-03 21:36:28 +0100
commit807c10c5652423be96d125a502be222aa8d80119 (patch)
tree74474e0714bfb96d6dc1482d697c7e032fd3728c /app/views/backends
parentf8c5b73939f4ad7ac0c18bb81c6b25da3e4c8ba0 (diff)
downloadgovuk-mini-environment-admin-807c10c5652423be96d125a502be222aa8d80119.tar
govuk-mini-environment-admin-807c10c5652423be96d125a502be222aa8d80119.tar.gz
Add extra fields to the Terraform AWS backend
Diffstat (limited to 'app/views/backends')
-rw-r--r--app/views/backends/terraform_aws/new.html.erb71
-rw-r--r--app/views/backends/terraform_aws/show.html.erb74
2 files changed, 145 insertions, 0 deletions
diff --git a/app/views/backends/terraform_aws/new.html.erb b/app/views/backends/terraform_aws/new.html.erb
index 57f2b21..04cab8a 100644
--- a/app/views/backends/terraform_aws/new.html.erb
+++ b/app/views/backends/terraform_aws/new.html.erb
@@ -82,6 +82,77 @@ License along with the GOV.UK Mini Environment Admin. If not, see
</div>
<div class="form-group form-group-lg">
+ <%= f.label(
+ :vpc_id,
+ 'VPC ID',
+ class: 'col-sm-4 control-label'
+ ) %>
+ <div class="col-sm-8">
+ <%= f.text_field(
+ :vpc_id,
+ class: 'form-control',
+ placeholder: 'The ID of the VPC (Virtual Private Cloud) to use'
+ ) %>
+ <span class="help-block">
+ <p>
+ This VPC (Virtual Private Cloud) should be the one to
+ use for all resources.
+ </p>
+ </span>
+ </div>
+ </div>
+
+ <div class="form-group form-group-lg">
+ <%= f.label(
+ :route_53_zone_id,
+ 'Route 53 Zone ID',
+ class: 'col-sm-4 control-label'
+ ) %>
+ <div class="col-sm-8">
+ <%= f.text_field(
+ :route_53_zone_id,
+ class: 'form-control',
+ placeholder: 'The ID of the Route 53 Zone to use'
+ ) %>
+ <span class="help-block">
+ <p>
+ This zone should be authoritive for the domain this
+ backend is using. Entries in this zone will be created
+ for the mini environments.
+ </p>
+ </span>
+ </div>
+ </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 e707ad4..497d344 100644
--- a/app/views/backends/terraform_aws/show.html.erb
+++ b/app/views/backends/terraform_aws/show.html.erb
@@ -87,6 +87,80 @@ License along with the GOV.UK Mini Environment Admin. If not, see
</div>
<div class="form-group form-group-lg">
+ <%= f.label(
+ :vpc_id,
+ 'VPC ID',
+ class: 'col-sm-4 control-label'
+ ) %>
+ <div class="col-sm-8">
+ <%= f.text_field(
+ :vpc_id,
+ class: 'form-control',
+ placeholder: 'The ID of the VPC (Virtual Private Cloud) to use',
+ readonly: true
+ ) %>
+ <span class="help-block">
+ <p>
+ This VPC (Virtual Private Cloud) should be the one to
+ use for all resources.
+ </p>
+ </span>
+ </div>
+ </div>
+
+ <div class="form-group form-group-lg">
+ <%= f.label(
+ :route_53_zone_id,
+ 'Route 53 Zone ID',
+ class: 'col-sm-4 control-label'
+ ) %>
+ <div class="col-sm-8">
+ <%= f.text_field(
+ :route_53_zone_id,
+ class: 'form-control',
+ placeholder: 'The ID of the Route 53 Zone to use',
+ readonly: true
+ ) %>
+ <span class="help-block">
+ <p>
+ This zone should be authoritive for the domain this
+ backend is using. Entries in this zone will be created
+ for the mini environments.
+ </p>
+ </span>
+ </div>
+ </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(