Skip to content

Can not launch task on default Capacity Provider #793

@toote

Description

@toote

According to AWS ECS RunTask documentation, to run a task in a cluster's default capacity provider you need to leave both CapacityProviderStrategy and LaunchType blank:

If no capacityProviderStrategy or launchType is specified, the defaultCapacityProviderStrategy for the cluster is used.

Unfortunately, that is not possible to be achieved with this action. The following configuration results in LaunchType being set to FARGATE:

     - name: Deploy and run
        uses: aws-actions/[email protected]
        with:
          task-definition: $TD
          service: $SERVICE
          cluster: $CLUSTER
          wait-for-service-stability: true
          run-task: true
          run-task-subnets: $SUBNETS
          run-task-security-groups: $SECURITY_GROUPS
          run-task-launch-type: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions