Skip to content

How to Run Commands on an AWS ECS Cluster Task or Container

If you need to run a command, or set of commands on an AWS ECS cluster container, then you can do the following:

aws ecs execute-command --cluster ${ClusterName} --task ${TASK_ARN} --container nginx --command "/bin/sh" --interactive
Code language: Bash (bash)

See also  Perform a Mysql Query using Joomla!
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x