Skip to content

feat(ecsBasePattern): allow enabling spot provider#53

Open
tm-lmathieu wants to merge 2 commits intomainfrom
feat/hub#18905-spot-capacity-provider
Open

feat(ecsBasePattern): allow enabling spot provider#53
tm-lmathieu wants to merge 2 commits intomainfrom
feat/hub#18905-spot-capacity-provider

Conversation

@tm-lmathieu
Copy link
Contributor

Fixes #

@tm-lmathieu tm-lmathieu requested a review from Copilot January 27, 2026 15:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for enabling Spot capacity providers in ECS Fargate services. When enabled, the service will be configured to use a combination of FARGATE and FARGATE_SPOT capacity providers, with FARGATE_SPOT weighted to handle the majority of tasks.

Changes:

  • Added enableSpotCapacityProvider property to configure Spot capacity
  • Implemented capacity provider strategy with FARGATE as base and FARGATE_SPOT weighted for scaling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +123 to +125
/*
* Enable Spot Capacity Provider
*/
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment uses single-line comment syntax /* instead of the JSDoc format. For consistency with the rest of the interface properties, use JSDoc format /** with a proper description.

Copilot uses AI. Check for mistakes.
}

const mergedProps = {
...defautProps,
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'defautProps' to 'defaultProps'.

Copilot uses AI. Check for mistakes.
Signed-off-by: github-actions <github-actions@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant