Matt Gowie (@Gowiem)
| EC2 | Fargate | |
|---|---|---|
| Model | You manage the underlying EC2 Instances | Serverless |
| Pricing |
Less expensive Instance Cost (i.e. 2 x m5.xlarge @ $0.19 / hour) |
More expensive Per Task $0.04 / vCPU Hour $0.004 / Mem. GB Hour |
| Data Volume Options | Docker Volumes, Bind Mounts, EFS | Ephemeral Storage, EFS |
| Networking Types | bridge, host, awsvpc | awsvpc |
| Operational Overhead | High | Very Low |
| Debugging | SSH / Docker Exec | No direct access |
+ Fargate Spot! (possible 70% discount)
placementStrategy:
- field: attribute:ecs.availability-zone
type: spread
- field: memory
type: binpackplacementConstraints:
- expression: attribute:ecs.instance-type =~ g4.*
type: memberOfaws ecs put-account-setting-default --name serviceLongArnFormat --value enabled
aws ecs put-account-setting-default --name taskLongArnFormat --value enabled
aws ecs put-account-setting-default --name containerInstanceLongArnFormat --value enabledQuestions?