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

Support enable-execute-command for run_task #205

Closed
cheethoe opened this issue Oct 31, 2023 · 3 comments
Closed

Support enable-execute-command for run_task #205

cheethoe opened this issue Oct 31, 2023 · 3 comments

Comments

@cheethoe
Copy link
Contributor

Describe Request:

I'm requesting the support for the --enable-execute-command option for the ecs run_task job/command

Examples:

Something like this

  - aws-ecs/run_task:
      cluster: <<parameters.cluster>>
      enable_execute_command: true
      run_task_output: /tmp/run_task_output.json
      security_group_ids: <<parameters.security_group_ids>>
      subnet_ids: <<parameters.subnet_ids>>
      task_definition: "${CCI_ORB_AWS_ECS_REGISTERED_TASK_DFN}"
  - run:
       name: Get Task ARN from run-task
       command: >-
         TASK_ARN=$(jq -r '.tasks[0].taskArn' /tmp/run_task_output.json) &&
         echo "export TASK_ARN='${TASK_ARN}'" >> "$BASH_ENV"
  - run:
        name: ECS Execute Command
        command: |
          aws ecs execute-command \
            --cluster <<parameters.cluster>> \
            --command '<<parameters.command>>' \
            --non-interactive \
            --task ${TASK_ARN}

Supporting Documentation Links:

https://docs.aws.amazon.com/cli/latest/reference/ecs/run-task.html#options
See the --enable-execute-command section

@cheethoe
Copy link
Contributor Author

Created PR: #204 for this

@cheethoe
Copy link
Contributor Author

is anybody out there?

@marboledacci
Copy link
Contributor

Hi @cheethoe, the version https://circleci.com/developer/orbs/orb/circleci/aws-ecs?version=5.0.0 should allow that new functionality.

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

No branches or pull requests

2 participants