Setting resource_class using aws-ecs orbs "deploy-service-update"

I’m using aws-ecs orb of 3.2.0.

Is there a way to set resouce_class to this job?
I’ve read the yml of orb, but they are not using resource_class param.

Maybe the defalut “large” is used to this job but I want to use “small” resource.

My config.yml is just like the Example from repository.

      - aws-ecr/build-and-push-image:
          region: AWS_REGION
          registry-id: AWS_ECR_REGISTRY_ID
          repo: ${MY_APP_PREFIX}
          tag: ${CIRCLE_SHA1}
      - aws-ecs/deploy-service-update:
          cluster: ${MY_APP_PREFIX}-cluster
          container-image-name-updates: container=${MY_APP_PREFIX}-service,tag=${CIRCLE_SHA1}
          family: ${MY_APP_PREFIX}-service
            - aws-ecr/build-and-push-image
1 Like

aws-ecr/build-and-push-image does accept a way to set the resource class as a parameter, it is - executor

This is because the resource-class is a parameter of executor and so a whole executor is defined. The default size is medium, which is the smallest size available to Linux machines.

1 Like