Skip to main content

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.AWS CLI Documentation
# Configure AWS credentials
aws configure

Deploy to ECR

1

Add ECR instance

helix add ecr --name staging
If you don’t have a project setup, you can do so with helix init ecr.
2

Push to ECR

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

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
⌘I