cds-snc / forms-terraform

Infrastructure as Code for the GC Forms environment
MIT License
16 stars 7 forks source link

feat: add Redis URL to the API ECS task #801

Closed patheard closed 2 months ago

patheard commented 2 months ago

Summary

Update the api module to set the REDIS_URL environment variable on the ECS task.

Related

github-actions[bot] commented 2 months ago

⚠ Terrform update available

Terraform: 1.9.5 (using 1.9.2)
Terragrunt: 0.67.1 (using 0.63.2)
github-actions[bot] commented 2 months ago

Staging: api

✅   Terraform Init: success ✅   Terraform Validate: success ✅   Terraform Format: success ✅   Terraform Plan: success ✅   Conftest: success

⚠️   Warning: resources will be destroyed by this change!

Plan: 1 to add, 1 to change, 1 to destroy
Show summary | CHANGE | NAME | |----------|-----------------------------------------------| | update | `module.api_ecs.aws_ecs_service.this` | | recreate | `module.api_ecs.aws_ecs_task_definition.this` |
Show plan ```terraform Resource actions are indicated with the following symbols: ~ update in-place -/+ destroy and then create replacement Terraform will perform the following actions: # module.api_ecs.aws_ecs_service.this will be updated in-place ~ resource "aws_ecs_service" "this" { id = "arn:aws:ecs:ca-central-1:687401027353:service/Forms/forms-api" name = "forms-api" tags = { "CostCentre" = "forms-platform-staging" "Terraform" = "true" } ~ task_definition = "forms-api:21" -> "forms-api" # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } # module.api_ecs.aws_ecs_task_definition.this must be replaced -/+ resource "aws_ecs_task_definition" "this" { ~ arn = "arn:aws:ecs:ca-central-1:687401027353:task-definition/forms-api:18" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:ca-central-1:687401027353:task-definition/forms-api" -> (known after apply) ~ container_definitions = (sensitive value) # forces replacement ~ id = "forms-api" -> (known after apply) ~ revision = 18 -> (known after apply) tags = { "CostCentre" = "forms-platform-staging" "Terraform" = "true" } # (12 unchanged attributes hidden) # (1 unchanged block hidden) } Plan: 1 to add, 1 to change, 1 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: plan.tfplan To perform exactly these actions, run the following command to apply: terraform apply "plan.tfplan" ```
Show Conftest results ```sh 20 tests, 20 passed, 0 warnings, 0 failures, 0 exceptions ```