ssmrun
Utilities for AWS EC2 SSM
run commands
list and show invocations
Installation
Install via pip
$ pip install ssmrun
Usage
Quickly run system commands on Linux nodes:
# Target nodes by name
$ ssm cmd <target> <system_command>
# Target nodes in an auto scaling group
$ ssm cmd -A <target> <system_command>
# Target nodes created with a CloudFormation stack (including CFN ASGs)
$ ssm cmd -S <target> <system_command>
Run SSM Command:
# Run on targets filtered by EC2 tag "Name"
$ ssm run <docutment-name> <ec2-instances-name>
# Run with SSM parameters
$ ssm run <docutment-name> <ec2-instances-name> -P p1="v1" -P p2="v2"
# Run and get status for each targeted instance
$ ssm run <docutment-name> <ec2-instances-name> -s
# Run and get command output for each targeted instance
$ ssm run <docutment-name> <ec2-instances-name> -o
# Run against instances in an auto scaling group
$ ssm run <docutment-name> <asg-name> -k aws:autoscaling:groupName
# Run against instances created via CloudFormation stack
$ ssm run <docutment-name> <cfn-stack-name> -k aws:cloudformation:stack-name
List and Show SSM Command Invocations:
# Show invocation
$ ssm show <command-id>
# Show invocation and targets status
$ ssm show <command-id> -s
# Show invocation and targets status and command output
$ ssm show <command-id> -o
# List command invocations
$ ssm ls -n NUM
# List command invocations and targets status
$ ssm ls -s
List and Show SSM Documents:
# List documents
$ ssm docs
# List documents with details
$ ssm docs -l
# Get document content
$ ssm get <doc-name>
Metadata
Release files for ssmrun 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ssmrun-0.1.5.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ssmrun-0.1.5-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 13.2 kB
Release files / ssmrun-0.1.5.tar.gz
| Download URL | ssmrun-0.1.5.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
861a78468c1ba9228b4bc85d88d5a899d90a49af2822379835c0c2797bef12af
|
|
BLAKE2b-256 checksum How to use checksums |
153979b9ac87c54af72d4115e5ecd91231991487bc7bde4805911fbfd591a502
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ssmrun-0.1.5-py2-none-any.whl
| Download URL | ssmrun-0.1.5-py2-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
0f82a37ac7904a683181381a1ebfd48007ad0a74215e3659ae33840d7f373443
|
|
BLAKE2b-256 checksum How to use checksums |
5c566e9f5b4c2abd0d4702f10240eb8b849ccc5cc29b095d79819ce4f456ec62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |