Deploy docker image from ECR to EC2 instance

I am trying to deploy to an instance of EC2 an image that I have already uploaded to ECR repository.
For that I am using orb


which works perfect.
But I want to continue with the deployment, and I want my docker container to be updated with the new changes. I saw that the orb


can do the job, but I am stuck there. This is my yaml file;

version: 2.1
  node: circleci/node@4.1.0
  aws-ecr: circleci/aws-ecr@6.15.0
  aws-ecs: circleci/aws-ecs@01.4.0
      - aws-ecr/build-and-push-image:
          repo: node.js-api
          tag: "latest,v0.1.${CIRCLE_BUILD_NUM}"
          dockerfile: "Dockerfile"
          path: .
      - aws-ecs/deploy-service-update:
            - aws-ecr/build-and-push-image
          family: "${AWS_RESOURCE_NAME_PREFIX}-service"
          cluster-name: "${AWS_RESOURCE_NAME_PREFIX}-cluster"
          container-image-name-updates: "container=${AWS_RESOURCE_NAME_PREFIX}-service,tag=${CIRCLE_SHA1}"

With that, I am getting this error during the second job:

aws: error: argument --task-definition: expected one argument

Any advise on how can I achieve this?
Thank you!

I know that build-and-push requires that you have the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_DEFAULT_REGION setup as environment variables. I set them up as a Context in Organizational Settings. That also means you need to include the context in the jobs: section of your config.