Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add run-task-capacity-provider-strategy input #661

Merged

Conversation

stenlarsson
Copy link
Contributor

When you use cluster auto scaling, you must specify capacityProviderStrategy and not launchType (as mentioned in the RunTask documentation). Unfortunately this is currently not possible to configure when running a one-off task with this action.

Issue #, if available:

None

Description of changes:

This adds a new input run-task-capacity-provider-strategy which takes a JSON array of capacity provider strategy items. When this is specified, run-task-launch-type will not be applied.

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

@stenlarsson stenlarsson force-pushed the run-task-capacity-provider-strategy branch from 2ba4d86 to 635487a Compare October 17, 2024 14:09
@amazreech amazreech changed the title Add run-task-capacity-provider-strategy input feat: add run-task-capacity-provider-strategy input Nov 11, 2024
@amazreech
Copy link
Contributor

Hi @stenlarsson, Thank you for making this PR.
The changes looks good to me, I can approve this PR if you could fix the failing unit tests and update/rebase the PR.

@stenlarsson stenlarsson force-pushed the run-task-capacity-provider-strategy branch from 635487a to 7957dbc Compare November 12, 2024 18:26
@stenlarsson
Copy link
Contributor Author

@amazreech Thanks for taking a look. I have now fixed the test and rebased the PR.

@amazreech
Copy link
Contributor

Thank you @stenlarsson for your quick response, the tests are passing now. Would you also be able to fix the failing "Package Distribution File" check. For this you would simply need to run npm run package and push the update dist/ folder to this commit as well.

@stenlarsson stenlarsson force-pushed the run-task-capacity-provider-strategy branch from 7957dbc to a5ebbd5 Compare November 12, 2024 20:22
@stenlarsson
Copy link
Contributor Author

Ok, done

When you use cluster auto scaling, you must specify `capacityProviderStrategy` and not `launchType`. Unfortunately this is not possible to configure when running a one-off task with this action.

This adds a new input `run-task-capacity-provider-strategy` which takes a JSON array of capacity provider strategy items. When this is specified, `run-task-launch-type` will not be applied.
@stenlarsson stenlarsson force-pushed the run-task-capacity-provider-strategy branch from a5ebbd5 to 34b5d6b Compare November 12, 2024 20:38
@stenlarsson
Copy link
Contributor Author

I must have used the wrong version of something when running that command. Let's try again.

@amazreech amazreech merged commit 6ebedf4 into aws-actions:master Nov 12, 2024
6 checks passed
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.

3 participants