-
Notifications
You must be signed in to change notification settings - Fork 3
Redeploying SWODLR‐API
SWODLR-API is an ever changing service which is in heavy development. As a result, redeployment of the service will sometimes be required.
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.
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".
Then "Force New Deployment" and "Save".