https://github.com/debugger24/action-aws-ssm-run-command
Github Action for running commands on Linux or Windows machine managed using SSM
https://github.com/debugger24/action-aws-ssm-run-command
aws aws-ssm ec2-instance github-action
Last synced: 6 months ago
JSON representation
Github Action for running commands on Linux or Windows machine managed using SSM
- Host: GitHub
- URL: https://github.com/debugger24/action-aws-ssm-run-command
- Owner: debugger24
- License: apache-2.0
- Created: 2022-08-23T07:30:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-23T13:16:55.000Z (over 3 years ago)
- Last Synced: 2024-03-15T04:06:58.069Z (almost 2 years ago)
- Topics: aws, aws-ssm, ec2-instance, github-action
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/aws-ssm-run-command
- Size: 246 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action - AWS SSM Run Command
Github Action for running commands on Linux or Windows machine managed using SSM
## Usage
```yaml
- name: Execute command
uses: debugger24/action-aws-ssm-run-command@v1
with:
aws-region: us-east-1
instance-ids: |
instance_id_1
instance_id_2
commands: |
pwd
ls
echo "Executed by Github Actions Workflow #${{ github.run_id }}" >> test.txt
```
## Action Inputs
| Input Name | Description | Required | Default Value |
|-------------------|----------------------------------------------------------------|----------|-----------------------------------------------------------|
| aws-region | AWS Region | true | |
| instance-ids | List of Instance IDs to execute command | true | |
| commands | Commands to be executed on instance | true | |
| os | (Optional) Operating system to run commands (windows or linux) | false | linux |
| working-directory | (Optional) Working directory for command execution | false | |
| comment | (Optional) Comment | false | Executed by Github Actions Workflow #${{ github.run_id }} |
## Action Outputs
| Output Name | Description |
|-------------|--------------------------------------------------------|
| command-id | Execution command ID generated by AWS send command API |