New: Become a sponsor via GitHub Sponsors!
Fargate runs highly scalable containers scheduled by the EC2 Container Service (ECS). To run an application on Fargate you need the following components:
- Docker image published to Docker Hub or EC2 Container Registry (ECR)
- Fargate cluster
- Fargate service
We provide you templates for the Fargate cluster and the service. You need to publish the Docker image.
This template describes a fault tolerant and scalable Fargate cluster on AWS.
- This template depends on one of our
vpc-*azs.yaml
templates. - Click Next to proceed with the next step of the wizard.
- Specify a name and all parameters for the stack.
- Click Next to proceed with the next step of the wizard.
- Click Next to skip the Options step of the wizard.
- Check the I acknowledge that this template might cause AWS CloudFormation to create IAM resources. checkbox.
- Click Create to start the creation of the stack.
- Wait until the stack reaches the state CREATE_COMPLETE
vpc/vpc-*azs.yaml
(required)operations/alert.yaml
(recommended)security/auth-proxy-*.yaml
security/waf.yaml
vpc/zone-*.yaml
state/s3.yaml*
This template describes a fault tolerant and scalable Fargate service on AWS. The service scales based on CPU utilization.
📚 Check out our new book Rapid Docker on AWS
- Written for DevOps engineers and web developers who want to run dockerized web applications on AWS.
- Prior knowledge of Docker and AWS is not required.
- Continuous Deployment of your Web Application and Infrastructure as Code.
We provide three service templates:
service-cluster-alb.yaml
uses the cluster's load balancer and path and/or host based routing.service-dedicated-alb.yaml
includes a dedicated load balancer (ALB).service-cloudmap.yaml
uses service discovery via Cloud Map instead of a load balancer.
This template describes a fault tolerant and scalable Fargate service that uses the cluster's load balancer and path and/or host based routing for incoming traffic.
- This template depends on one of our
vpc-*azs.yaml
templates. - This template depends on our
cluster.yaml
template. - Click Next to proceed with the next step of the wizard.
- Specify a name and all parameters for the stack.
- Click Next to proceed with the next step of the wizard.
- Click Next to skip the Options step of the wizard.
- Check the I acknowledge that this template might cause AWS CloudFormation to create IAM resources. checkbox.
- Click Create to start the creation of the stack.
- Wait until the stack reaches the state CREATE_COMPLETE
vpc/vpc-*azs.yaml
(required)fargate/cluster.yaml
(required)operations/alert.yaml
(recommended)vpc/zone-*.yaml
state/client-sg.yaml
This template describes a fault tolerant and scalable Fargate service that uses a dedicated load balancer for incoming traffic.
- This template depends on one of our
vpc-*azs.yaml
templates. - This template depends on our
cluster.yaml
template. - Click Next to proceed with the next step of the wizard.
- Specify a name and all parameters for the stack.
- Click Next to proceed with the next step of the wizard.
- Click Next to skip the Options step of the wizard.
- Check the I acknowledge that this template might cause AWS CloudFormation to create IAM resources. checkbox.
- Click Create to start the creation of the stack.
- Wait until the stack reaches the state CREATE_COMPLETE
vpc/vpc-*azs.yaml
(required)fargate/cluster.yaml
(required)operations/alert.yaml
(recommended)security/auth-proxy-*.yaml
security/waf.yaml
vpc/zone-*.yaml
state/s3.yaml*
state/client-sg.yaml
This template describes a fault tolerant and scalable Fargate service that registers tasks at the service discovery registry (aka. Cloud Map). Allows inter-service communication without any load balancer in between.
- This template depends on one of our
vpc-*azs.yaml
templates. - This template depends on our
cluster.yaml
template. - This template depends on our
cloudmap-*.yaml
template. - This template depends on our
client-sg.yaml
template. - Click Next to proceed with the next step of the wizard.
- Specify a name and all parameters for the stack.
- Click Next to proceed with the next step of the wizard.
- Click Next to skip the Options step of the wizard.
- Check the I acknowledge that this template might cause AWS CloudFormation to create IAM resources. checkbox.
- Click Create to start the creation of the stack.
- Wait until the stack reaches the state CREATE_COMPLETE
vpc/vpc-*azs.yaml
(required)fargate/cluster.yaml
(required)vpc/cloudmap-private.yaml
(required)state/client-sg.yaml
(required)operations/alert.yaml
(recommended)vpc/ssh-bastion.yaml