castlenine/aws-ssm-command
Execute remote commands or scripts on AWS EC2 instances using AWS Systems Manager (SSM) with Github Actions
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Oct 25, 2024
- License
- MIT
Pinned Snippet
uses: castlenine/aws-ssm-command@843c2cbe2b68d4b50f130d16f1e07db56179b387 # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| aws-access-key-id | AWS access key ID | yes | — |
| aws-secret-access-key | AWS secret access key | yes | — |
| aws-region | AWS region of the instance | yes | — |
| instance-ids | AWS EC2 Instance ID or IDs | yes | — |
| command | Command to execute | no | echo "Hello World from Github Actions" |
| user | User to execute the command as | no | root |
| home-env | Environment variable HOME to export in the command | no | /home/ubuntu |
| working-directory | Command working directory | no | /home/ubuntu |
| script-parent-folder-path | Script parent folder path if the command is a script file | no | .github |
| wait-for-completion | Whether to wait for the command to complete before finishing the action | no | true |
| polling-interval-seconds | Polling interval in seconds when waiting for command completion | no | 5 |
| timeout-seconds | Timeout in seconds when waiting for command completion | no | 1200 |
| comment | Comment for the command | no | Executed by Github Actions |
| action-outputs | If the action have outputs | no | true |
| console-log | If the command response and result have a console log | no | true |
Outputs
| name | description |
|---|---|
| request-id | Request ID |
| request-date-time | Request date time |
| request-status | Request status |
| request-status-details | Request status details |
| command-status | Command status |
| command-status-details | Command status details |
| command-output | Command output |
| command-error | Command error |