ECS Re-Deployments
Overview
This document outlines the process for redeploying the ArcAPI
and ArcAPI-Workers
services on AWS Elastic Container Service (ECS).
Why force a new deployment?
Forcing a new deployment is necessary when environment variables are changed for a service. ECS does not automatically apply environment variable updates unless a new deployment is triggered. If you modify environment variables without redeploying, the changes will not take effect until you force a new deployment. This process should only be used in this scenario.
AWS Account Access
Access the AWS Console through SSO:
- Account URL: AWS Console (Engineering-Prod)
- Account ID: 182188583052
- Role: Engineering-Prod
Environment Configuration
Regions
- Dev Environment:
us-east-1
- Production Environment:
us-west-2
ECS Cluster and Services
- Cluster:
dev-API
- Services (Dev,
us-east-1
):ArcAPI
ArcAPI-Workers
Note: Service and cluster names may differ in other regions (e.g., production in
us-west-2
). Adjust names accordingly when working outside the dev environment.
Re-Deployment Process
Step 1: Navigate to ECS
- Login to AWS Console using the SSO link above
- Navigate to Amazon Elastic Container Service
- Select Clusters from the left sidebar
- Click on the
dev-API
cluster
Step 2: Re-Deploy ArcAPI Service
- In the cluster view, click on the Services tab
- Select the
ArcAPI
service - Click the Update dropdown button
- In the deployment configuration section:
- Check Force new deployment
- Leave other settings unchanged
- Click Update to start the deployment
Step 3: Re-Deploy ArcAPI-Workers Service
- Return to the Services tab in the
dev-API
cluster - Select the
ArcAPI-Workers
service - Click the Update dropdown button
- In the deployment configuration section:
- Check Force new deployment
- Leave other settings unchanged
- Click Update to start the deployment
Related Documentation
- Running Remote Tasks - For executing rake tasks in remote environments
- Feature Flags - For managing feature rollouts
- Releases - For the overall release process