How to use AWS Graviton processors on AWS Fargate with Copilot
Introduction
Containerize an example application
Deploy with Copilot
Next Steps
How to use AWS Graviton processors on AWS Fargate with Copilot
Who is this for?
This is an introductory topic for software developers who want to learn how to use the command line to deploy Arm containers on AWS Fargate.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Package applications using a multi-architecture containers
- Deploy containers on AWS Fargate with the AWS Copilot CLI
- Configure Copilot to use AWS Graviton processors
Prerequisites
Before starting, you will need the following:
- An Amazon Web Services (AWS) account
- A local computer with Docker, AWS CLI, and AWS Copilot CLI installed
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You’ll package a containerized application and deploy it to AWS Fargate using the AWS Copilot CLI, with a focus on targeting AWS Graviton2 processors. First, you’ll containerize an example app. Then, you’ll run Copilot to initialize a Load Balanced Web Service and configure Copilot for the Arm architecture so the service runs on Graviton. You’ll also use a Dockerfile to build locally or reference an existing multi-architecture image and push it to Amazon ECR. By the end, you’ll deploy the service on Fargate on Arm.
Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
By default, Copilot builds the container for
amd64 on your local machine, pushes it to Amazon ECR, and creates what is needed to run the application on AWS Fargate. The command initializes a Load Balanced Web Service and deploys it.Change the architecture setting before you build and deploy. Copilot defaults to
amd64, and the steps explain how to set it to Arm so the service runs on Graviton.Yes. Use the
--image option instead of --dockerfile, and ensure the image is multi-architecture and includes an Arm variant for Graviton.Verify that Docker and the AWS Copilot CLI are installed and available on your system. This guide applies to both Linux and macOS users.
Copilot pushes the image to Amazon Elastic Container Registry (ECR). You will see the image upload occur before the service is provisioned on Fargate.