hisapy/AWS Run Shell Script
Run a shell script inside an EC2 managed instance via AWS SSM SendCommand
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| instance_id | The instance ID to send the command to | yes | — |
| working_directory | The working directory for the command execution | no | /home/ec2-user |
| user | The user to run the command as | no | ec2-user |
| command | The shell command to execute via AWS-RunShellScript | yes | — |
| comment | A comment for the command execution | no | — |
| timeout | The timeout for the command execution in seconds | no | 120 |
| wait_for_result | Whether to wait for command to return a result (true|false) | no | true |
Outputs
| name | description |
|---|---|
| command_id | The SSM command ID |
| command_status | The status of the command executed in the instance |
| command_output | The output of the command executed in the instance |