copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

[Feature Request]: Support ARM64 FARGATE_SPOT

Open interu opened this issue 1 year ago • 4 comments

Describe your idea/feature/enhancement

Amazon ECS now supports AWS Graviton-based Spot compute with AWS Fargate https://aws.amazon.com/jp/about-aws/whats-new/2024/09/amazon-ecs-graviton-based-spot-compute-fargate/

I would like to see official support for this. I searched the source code but could not find any code that restricts it to x86 only. If you already support it, please rewrite the docs.

Proposal

Additional Details

interu avatar Sep 09 '24 07:09 interu

Hello @interu !

To get started, just configure your task definition just like you do today with cpu-architecture = ARM64 and choose FARGATE_SPOT as the capacity provider to run your Amazon ECS service or a standalone task. Amazon ECS will leverage spare AWS Graviton-based compute capacity available in the AWS cloud for running your service or task.

As mentioned from the blogpost you should be able to configure these two fields in the manifest to have ARM64/ FARGATE_SPOT.

  1. platform as linux/arm64 which is ARM64 based cpu arvhitecture. 2.count.spot to use FARGATE_SPOT as capacity provider.

Action item: update the docs to remove this below info section

Fargate Spot is not supported for containers running on ARM architecture.

KollaAdithya avatar Sep 13 '24 20:09 KollaAdithya

Hello @KollaAdithya I actually tried it. However, an error occurred in the following validation. https://github.com/aws/copilot-cli/blob/mainline/internal/pkg/manifest/validate.go#L2397-L2402

interu avatar Sep 18 '24 05:09 interu

Hello @interu thank you for diving deep into the codebase. Sounds like we should remove the validation since it's supported now.

iamhopaul123 avatar Sep 23 '24 16:09 iamhopaul123

When will it be release? I am eagerly awaiting its release.

interu avatar Oct 02 '24 12:10 interu