CircleCI deployment to AWS ECS

CircleCI job steps

IAM permissions needed by CircleCI

  • EC2 Container Registry Full Access to repo arn resource
  • EC2 Container Service : RegisterTaskDefinition
  • EC2 Container Service : UpdateService

Environment variables

  • AWS_ACCOUNT_ID
  • AWS_REGION
  • AWS_ECS_CLUSTER
  • AWS_ECS_SERVICE
  • AWS_ECS_TASK_NAME

CircleCI Screenshot

CircleCI job