Configure AWS CLI

Ensure you have the necessary permissions to create and push to the ECR repository. Using Helix with ECR will NOT work unless you have the necessary permissions via the AWS CLI.
# Configure AWS credentials
aws configure

Deploy to ECR

1

Add ECR instance

helix add ecr --name staging
2

Build image

helix build staging
3

Push to ECR

helix push staging
This will:
  • Create ECR repository if needed
  • Authenticate Docker with ECR
  • Tag and push the image
4

Deploy to ECS/EKS

Use the pushed image in your container orchestration:
# ECS task definition
image: 123456789.dkr.ecr.us-west-2.amazonaws.com/my-app:latest