From 73b23853153e5a3387cce6314893a52212aa7803 Mon Sep 17 00:00:00 2001 From: Will Gibson <8738245+WillGibson@users.noreply.github.com> Date: Thu, 18 Apr 2024 09:31:36 +0100 Subject: [PATCH] docs: Remove information about using Terraform workspaces (#80) --- README.md | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index f1550180b..557137c95 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,5 @@ # Terraform platform modules -## Using [Terraform workspaces](https://developer.hashicorp.com/terraform/language/state/workspaces) for development - -In your `-deploy` codebase: - -- `aws sso login` -- `cd terraform` -- `terraform init` -- If first time `terraform workspace new ` else `terraform workspace select ` - - `workspace` will normally be the name of your environment -- Change name of environments/spaces in `.tf` to your environment/space - - This step should go away in due course, but for now we need to do this and not commit the changes to `main` -- `terraform plan|apply` - ## Testing The short tests that run against the `terraform plan` for a module can be run by `cd`-ing into the module folder and running: @@ -30,7 +17,7 @@ terraform test -test-directory e2e-tests ## Backing services module -This module is configured by a yaml file and two simple args: +This module is configured by a YAML file and two simple args: ```terraform locals { @@ -133,9 +120,8 @@ demodjango-monitoring: Note: We are currently treating the `terraform-deployment` branch as our `main` branch for this work. - Terraform - - Edit the `environment` and `vpc_name` under `module.extensions-tf` in `terraform/demodjango.tf` + - Edit the `environment` and `vpc_name` under `module.extensions-tf` in `terraform//main.tf` - `cd terraform` - - Create or select a Terraform workspace for your environment `terraform workspace new|select ` - `terraform apply` - AWS Copilot - `cd ..` @@ -145,8 +131,8 @@ Note: We are currently treating the `terraform-deployment` branch as our `main` ``` : http: - alb: arn:aws:elasticloadbalancing:eu-west-2:852676506468:loadbalancer/app/demodjango-willg/bc968fa0a4fcd257 - alias: internal.willg.demodjango.uktrade.digital + alb: arn:aws:elasticloadbalancing:eu-west-2:852676506468:loadbalancer/app/demodjango-/bc968fa0a4fcd257 + alias: internal..demodjango.uktrade.digital ``` - Add the `DJANGO_SECRET_KEY` secret for you environment `copilot secret init --name DJANGO_SECRET_KEY --values =''` - Deploy environment