Skip to content

Redeploying SWODLR‐API

Josh Garde edited this page Oct 11, 2023 · 1 revision

SWODLR-API is an ever changing service which is in heavy development. As a result, redeployment of the service will sometimes be required.

Pre-deployment

The Terraform deployment requires several environment variables to be defined before deployment can start. These variables are:

  • TF_VAR_edl_client_id
  • TF_VAR_edl_client_secret
  • TF_VAR_session_encryption_key
  • TF_VAR_container_image_tag
  • TF_VAR_ingest_aws_account
  • TF_VAR_ingest_aws_role

The values of these variables can be found in the SSM Parameter Store.

Deployment

To redeploy the service, enter the terraform directory of the swodlr-api repo and run the deployment script for the environment desired:

cd swodlr-api/terraform
./bin/deploy.sh uat

This will deploy and verify that the current Terraform configuration is currently deployed to that environment.

Additionally, if a container is required to be updated to the latest version of its Docker image tag, open the AWS web console and goto the ECS task. Click on "Update Service".

image

Then "Force New Deployment" and "Save".

image

Clone this wiki locally