diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-03 13:06:30 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-03 14:09:13 +0100 |
commit | 93c1c6e5b76ed712f6c5107c6a124025279996d6 (patch) | |
tree | 9744ed6a454e8d5ba69657e4ad5fdd699b726b25 /db | |
parent | f74331a8e6d5b0ae9c2c73a36ba19730752269aa (diff) | |
download | govuk-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 'db')
-rw-r--r-- | db/migrate/20180603120426_remove_efs_file_system_id_from_backends_terraform_aws.rb | 5 | ||||
-rw-r--r-- | db/structure.sql | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/db/migrate/20180603120426_remove_efs_file_system_id_from_backends_terraform_aws.rb b/db/migrate/20180603120426_remove_efs_file_system_id_from_backends_terraform_aws.rb new file mode 100644 index 0000000..25abfb5 --- /dev/null +++ b/db/migrate/20180603120426_remove_efs_file_system_id_from_backends_terraform_aws.rb @@ -0,0 +1,5 @@ +class RemoveEfsFileSystemIdFromBackendsTerraformAws < ActiveRecord::Migration[5.1] + def change + remove_column :terraform_aws_backends, :efs_file_system_id, :string + end +end diff --git a/db/structure.sql b/db/structure.sql index 9e03d7d..36c6abb 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -256,7 +256,6 @@ CREATE TABLE public.terraform_aws_backends ( updated_at timestamp without time zone NOT NULL, domain character varying, route_53_zone_id character varying NOT NULL, - efs_file_system_id character varying NOT NULL, vpc_id character varying NOT NULL ); @@ -660,6 +659,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20180530191341'), ('20180530192706'), ('20180601153537'), -('20180601182655'); +('20180601182655'), +('20180603120426'); |