Skip to content

Commit a5ebbd5

Browse files
committed
Add run-task-capacity-provider-strategy input
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.
1 parent 96cda52 commit a5ebbd5

File tree

4 files changed

+779
-8460
lines changed

4 files changed

+779
-8460
lines changed

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ inputs:
5555
run-task-assign-public-IP:
5656
description: "Whether the task's elastic network interface receives a public IP address. The default value is DISABLED but will only be applied if run-task-subnets or run-task-security-groups are also set."
5757
required: false
58+
run-task-capacity-provider-strategy:
59+
description: 'A JSON array of capacity provider strategy items which should applied when running a task outside of a service. Will default to none.'
60+
required: false
5861
run-task-launch-type:
59-
description: "ECS launch type for tasks run outside of a service. Valid values are 'FARGATE' or 'EC2'. Will default to 'FARGATE'."
62+
description: "ECS launch type for tasks run outside of a service. Valid values are 'FARGATE' or 'EC2'. Will default to 'FARGATE'. Will only be applied if run-task-capacity-provider-strategy is not set."
6063
required: false
6164
run-task-started-by:
6265
description: "A name to use for the startedBy tag when running a task outside of a service. Will default to 'GitHub-Actions'."

0 commit comments

Comments
 (0)