awslabs / ec2-spot-labs

Collection of tools and code examples to demonstrate best practices in using Amazon EC2 Spot Instances.
https://aws.amazon.com/ec2/spot/
Other
942 stars 319 forks source link

Adding ECS + Spot terraform template #52

Closed nadaahm closed 3 years ago

nadaahm commented 3 years ago

Issue #, if available:

Description of changes: Terrafrom template to create ECS cluster following EC2 Spot best practices.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

ashwinikumar-sa commented 3 years ago

Ideally, we can use same sized instances from different families and generations [vcpu:memory ratio] for better utilization of resources and placement of tasks. maybe we can assume what size of tasks we will be placing on these CPs [1:4/ 1:8 etc]