From 93c1c6e5b76ed712f6c5107c6a124025279996d6 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 3 Jun 2018 13:06:30 +0100 Subject: 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. --- app/models/backends/terraform_aws.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/models') diff --git a/app/models/backends/terraform_aws.rb b/app/models/backends/terraform_aws.rb index e448cd8..d5abfee 100644 --- a/app/models/backends/terraform_aws.rb +++ b/app/models/backends/terraform_aws.rb @@ -31,7 +31,6 @@ # updated_at :datetime not null # domain :string # route_53_zone_id :string not null -# efs_file_system_id :string not null # vpc_id :string not null # @@ -107,6 +106,7 @@ class Backends::TerraformAws < ApplicationRecord vars: common_terraform_variables.merge( aws_vpc_id: vpc_id, ssh_public_key: ssh_public_key, + backend_slug: label.parameterize, mini_environment_admin_guix_public_key: guix_public_key, mini_environment_admin_public_ip_address: public_ip_address ), @@ -132,8 +132,7 @@ class Backends::TerraformAws < ApplicationRecord aws_secret_key: aws_secret_access_key, aws_region: aws_region, ssh_public_key: ssh_public_key, - aws_route_53_zone_id: route_53_zone_id, - aws_efs_file_system_id: efs_file_system_id + aws_route_53_zone_id: route_53_zone_id } end -- cgit v1.2.3