Description
Runs a command in a container on an Elastic Container Instance (ECI). Use this action in an OOS workflow to execute shell commands or scripts on a running ECI without SSH access.
Syntax
Action: ACS::ECI::ExecContainerCommand
Properties:
RegionId: String
ContainerGroupId: String
Command: List
The Command property takes a list of strings that form the command and its arguments. Pass each token as a separate list item:
Action: ACS::ECI::ExecContainerCommand
Properties:
ContainerGroupId: cg-xxxxxxxxxxxxxxxx
Command:
- /bin/sh
- -c
- echo hello
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
RegionId |
The region where the ECI resides. Specify this attribute when the target ECI is in a different region from the current execution context. |
String |
No |
{{ ACS::RegionId }} |
|
|
ContainerGroupId |
The ID of the ECI on which to run the command. |
String |
Yes |
||
|
Command |
The command to run, as a list of strings. The first element is the executable; following elements are its arguments. |
List |
Yes |
Output
|
Output item |
Description |
Type |
|
SyncResponse |
The synchronous response from the command, including stdout and stderr output. |
List |
References
For more information, see ACS::ECI::ExecContainerCommand.yml on GitHub.