isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

feat(ecs): add workflow + definition to link to ecs #1064

Closed seaerchin closed 9 months ago

seaerchin commented 10 months ago

NOTE: Do not merge yet!!! Wait until infra PR to setup ECS is merged

Problem

We need to set up a ci for deployment to ecs. this is done in deploy_staging.yml, which uses task-definition to deploy to ecr (and subsequently, ecs)

Solution

  1. setup github workflow for deployment to ecr + ecs
  2. setup task definition - this draws parameters from SSM directliy and injects them into the container; this is also the equivalent of the docker-compose for ec(r/s), where we mount + add in env vars.

Breaking Changes