version: 2.1
orbs:
aws-ecr: circleci/aws-ecr@8.1.2
aws-ecs: circleci/aws-ecs@3.0.0
workflows:
build_and_push_image:
jobs:
- aws-ecr/build-and-push-image: # Use the pre-defined `build-and-push-image` job
dockerfile: Dockerfile
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-cli-version: latest
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
path: .
profile-name: default
repo: backend
region: ${AWS_REGION}
registry-id: AWS_ECR_REGISTRY_ID
tag: 'latest'
push-image: true
platform: linux/amd64
- aws-ecs/deploy-service-update:
cluster: 'audit-progress-control'
container-image-name-updates: 'container=backendcontainer,tag=latest'
family: 'backendservice'
requires:
- aws-ecr/build-and-push-image
Error: An error occurred (ClientException) when calling the DescribeTaskDefinition operation: Unable to describe task definition.