cds-snc / forms-terraform

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

fix: set API service to use latest task def #767

Closed patheard closed 3 months ago

patheard commented 3 months ago

Summary

Update the API ECS service to always use the latest ACTIVE task definition. This allows us to manage the task deployments primarily through the CI/CD deployment workflows of the cds-snc/forms-api repo.

Related

github-actions[bot] commented 3 months ago

⚠ Terrform update available

Terraform: 1.9.4 (using 1.9.2)
Terragrunt: 0.66.3 (using 0.63.2)
github-actions[bot] commented 3 months ago

Staging: api

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

Plan: 0 to add, 1 to change, 0 to destroy
Show summary | CHANGE | NAME | |--------|---------------------------------------| | update | `module.api_ecs.aws_ecs_service.this` |
Show plan ```terraform Resource actions are indicated with the following symbols: ~ update in-place 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 = "arn:aws:ecs:ca-central-1:687401027353:task-definition/forms-api:3" -> "forms-api" # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } Plan: 0 to add, 1 to change, 0 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 ```