Skip to content

Commit 54eb847

Browse files
[New Template] ecs/cluster-cost-optimized.yaml (widdix#437)
* ECS Scaling 2.0 * keep old cluster template * fixing template id * adding test * fixing IAM policy Co-authored-by: Michael Wittig <[email protected]>
1 parent d885737 commit 54eb847

File tree

4 files changed

+1519
-1
lines changed

4 files changed

+1519
-1
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

Diff for: docs/ecs.md

+24
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,30 @@ This template describes a fault tolerant and scalable ECS cluster on AWS. The cl
3434
* `state/s3.yaml`
3535
* `state/client-sg.yaml`
3636

37+
# ECS cluster (cost optimzed)
38+
This template describes a fault tolerant, scalable, and cost optimized ECS cluster on AWS. The cluster scales out event driven and scales in based on memory and CPU reservation. In case of a scale down, the instance drains all containers before it is terminated.
39+
40+
![Architecture](./img/ecs-cluster.png)
41+
42+
## Installation Guide
43+
1. This templates depends on one of our [`vpc-*azs.yaml`](./vpc/) templates. [![Launch Stack](./img/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/create/review?templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates-releases-eu-west-1/__VERSION__/vpc/vpc-2azs.yaml&stackName=vpc)
44+
1. [![Launch Stack](./img/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/create/review?templateURL=https://s3-eu-west-1.amazonaws.com/widdix-aws-cf-templates-releases-eu-west-1/__VERSION__/ecs/cluster-cost-optimized.yaml&stackName=ecs-cluster&param_ParentVPCStack=vpc)
45+
1. Click **Next** to proceed with the next step of the wizard.
46+
1. Specify a name and all parameters for the stack.
47+
1. Click **Next** to proceed with the next step of the wizard.
48+
1. Click **Next** to skip the **Options** step of the wizard.
49+
1. Check the **I acknowledge that this template might cause AWS CloudFormation to create IAM resources.** checkbox.
50+
1. Click **Create** to start the creation of the stack.
51+
1. Wait until the stack reaches the state **CREATE_COMPLETE**
52+
53+
## Dependencies
54+
* `vpc/vpc-*azs.yaml` (**required**)
55+
* `vpc/vpc-*-bastion.yaml` (recommended)
56+
* `operations/alert.yaml` (recommended)
57+
* `security/auth-proxy-*.yaml`
58+
* `state/s3.yaml`
59+
* `state/client-sg.yaml`
60+
3761
# ECS service
3862
This template describes a fault tolerant and scalable ECS service on AWS. The service scales based on CPU utilization.
3963

0 commit comments

Comments
 (0)