I am using the aws-ecr/build-and-push-image orb to build docker images and push them to AWS ECR.
I’m using a medium machine to do the work. I’d like to try and increase that to a faster machine type.
Is this possible? I’ve tried numerous options in my config file but I am struggling to get the right syntax. Perhaps it is not possible with this orb…
Thank you for sharing your question on our forum!
aws-ecr/build-and-push-image job, you can pass in a custom executor and define a specific resource class.
Here is an example config.yml:
Here I have defined an executor named
custom, and I am passing that in to the orb job under the
executor parameter. You will also need to specify an image. A list of available images for the machine executor is available here:
Configuring CircleCI - CircleCI
For reference, the default executor has the following definition:
Let me know if you would like further clarification on anything.