forked from widdix/aws-cf-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fargate support (3rd iteration) (widdix#249)
[New Template] fargate/cluster - Fargate cluster [New Template] fargate/service-dedicated-alb - Fargate service that runs on a Fargate cluster based on fargate/cluster.yaml and uses a dedicated ALB [Improvement] ecs/cluster - Optional support for ALB access logging and idle timeout [Improvement] ecs/service-dedicated-alb - Optional support for ALB access logging and idle timeout [Improvement] ecs/service-dedicated-alb - Added parameters to control Cpu, Memory, AutoScaling, and HealthCheckGracePeriod [Improvement] ecs/service-cluster-alb - Added parameters to control Cpu, Memory, AutoScaling, and HealthCheckGracePeriod
- Loading branch information
1 parent
b4502de
commit 935d24a
Showing
13 changed files
with
1,255 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<iframe src="https://ghbtns.com/github-btn.html?user=widdix&repo=aws-cf-templates&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> | ||
|
||
> **New**: Manage Free Templates for AWS CloudFormation with the [widdix CLI](./cli/) | ||
[Fargate](https://aws.amazon.com/fargate/) runs highly scalable containers scheduled by the [EC2 Container Service (ECS)](https://aws.amazon.com/ecs/). To run an application on Fargate you need the following components: | ||
|
||
* Docker image published to [Docker Hub](https://hub.docker.com/) or [EC2 Container Registry (ECR)](https://aws.amazon.com/ecr/) | ||
* Fargate cluster | ||
* Fargate service | ||
|
||
We provide you templates for the Fargate cluster and the service. You need to publish the Docker image. | ||
|
||
# Fargate cluster | ||
This template describes a fault tolerant and scalable Fargate cluster on AWS. | ||
|
||
## Installation Guide | ||
1. This templates depends on our [`vpc-*azs.yaml`](./vpc/) template. [![Launch Stack](./img/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=vpc-2azs&templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates-releases-eu-west-1/__VERSION__/vpc/vpc-2azs.yaml) | ||
1. [![Launch Stack](./img/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=fargate-cluster&templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates-releases-eu-west-1/__VERSION__/fargate/cluster.yaml) | ||
1. Click **Next** to proceed with the next step of the wizard. | ||
1. Specify a name and all parameters for the stack. | ||
1. Click **Next** to proceed with the next step of the wizard. | ||
1. Click **Next** to skip the **Options** step of the wizard. | ||
1. Check the **I acknowledge that this template might cause AWS CloudFormation to create IAM resources.** checkbox. | ||
1. Click **Create** to start the creation of the stack. | ||
1. Wait until the stack reaches the state **CREATE_COMPLETE** | ||
|
||
# Fargate service | ||
This template describes a fault tolerant and scalable Fargate service on AWS. The service scales based on CPU utilization. | ||
|
||
> The image needs to expose port 80 or the `AWS::ECS::TaskDefinition` needs to be adjusted! | ||
### Installation Guide | ||
1. This templates depends on our [`cluster.yaml`](./fargate/) template. [![Launch Stack](./img/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=fargate-cluster&templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates-releases-eu-west-1/__VERSION__/fargate/cluster.yaml) | ||
1. [![Launch Stack](./img/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=fargate-service&templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates-releases-eu-west-1/__VERSION__/fargate/service-dedicated-alb.yaml) | ||
1. Click **Next** to proceed with the next step of the wizard. | ||
1. Specify a name and all parameters for the stack. | ||
1. Click **Next** to proceed with the next step of the wizard. | ||
1. Click **Next** to skip the **Options** step of the wizard. | ||
1. Check the **I acknowledge that this template might cause AWS CloudFormation to create IAM resources.** checkbox. | ||
1. Click **Create** to start the creation of the stack. | ||
1. Wait until the stack reaches the state **CREATE_COMPLETE** | ||
|
||
### Dependencies | ||
* `vpc/vpc-*azs.yaml` (**required**) | ||
* `fargate/cluster.yaml` (**required**) | ||
* `operations/alert.yaml` (recommended) | ||
* `security/auth-proxy-*.yaml` | ||
* `vpc/zone-*.yaml` | ||
* `state/s3.yaml*` | ||
* `state/client-sg.yaml` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.