forked from aws/aws-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'awserik-awserik-association' into develop
PR aws#3949. * awserik-awserik-association: Add new ssm examples
- Loading branch information
Showing
12 changed files
with
348 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
awscli/examples/ssm/describe-association-execution-targets.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
**To get details of an association execution** | ||
|
||
This example describes the specified association execution. | ||
|
||
Command:: | ||
|
||
aws ssm describe-association-execution-targets --association-id "8dfe3659-4309-493a-8755-0123456789ab" --execution-id "7abb6378-a4a5-4f10-8312-0123456789ab" | ||
|
||
Output:: | ||
|
||
{ | ||
"AssociationExecutionTargets": [ | ||
{ | ||
"AssociationId": "8dfe3659-4309-493a-8755-0123456789ab", | ||
"AssociationVersion": "1", | ||
"ExecutionId": "7abb6378-a4a5-4f10-8312-0123456789ab", | ||
"ResourceId": "i-1234567890abcdef0", | ||
"ResourceType": "ManagedInstance", | ||
"Status": "Success", | ||
"DetailedStatus": "Success", | ||
"LastExecutionDate": 1550505538.497, | ||
"OutputSource": { | ||
"OutputSourceId": "97fff367-fc5a-4299-aed8-0123456789ab", | ||
"OutputSourceType": "RunCommand" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
**To get details of all executions for an association** | ||
|
||
This example describes all executions of the specified association. | ||
|
||
Command:: | ||
|
||
aws ssm describe-association-executions --association-id "8dfe3659-4309-493a-8755-0123456789ab" | ||
|
||
Output:: | ||
|
||
{ | ||
"AssociationExecutions": [ | ||
{ | ||
"AssociationId": "8dfe3659-4309-493a-8755-0123456789ab", | ||
"AssociationVersion": "1", | ||
"ExecutionId": "474925ef-1249-45a2-b93d-0123456789ab", | ||
"Status": "Success", | ||
"DetailedStatus": "Success", | ||
"CreatedTime": 1550505827.119, | ||
"ResourceCountByStatus": "{Success=1}" | ||
}, | ||
{ | ||
"AssociationId": "8dfe3659-4309-493a-8755-0123456789ab", | ||
"AssociationVersion": "1", | ||
"ExecutionId": "7abb6378-a4a5-4f10-8312-0123456789ab", | ||
"Status": "Success", | ||
"DetailedStatus": "Success", | ||
"CreatedTime": 1550505536.843, | ||
"ResourceCountByStatus": "{Success=1}" | ||
}, | ||
... | ||
] | ||
} | ||
|
||
**To get details of all executions for an association after a specific date and time** | ||
|
||
This example describes all executions of an association after the specified date and time. | ||
|
||
Command:: | ||
|
||
aws ssm describe-association-executions --association-id "8dfe3659-4309-493a-8755-0123456789ab" --filters "Key=CreatedTime,Value=2019-02-18T16:00:00Z,Type=GREATER_THAN" | ||
|
||
Output:: | ||
|
||
{ | ||
"AssociationExecutions": [ | ||
{ | ||
"AssociationId": "8dfe3659-4309-493a-8755-0123456789ab", | ||
"AssociationVersion": "1", | ||
"ExecutionId": "474925ef-1249-45a2-b93d-0123456789ab", | ||
"Status": "Success", | ||
"DetailedStatus": "Success", | ||
"CreatedTime": 1550505827.119, | ||
"ResourceCountByStatus": "{Success=1}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
**To list all versions of an association for a specific association ID** | ||
|
||
This example lists all versions of the specified associations. | ||
|
||
Command:: | ||
|
||
aws ssm list-association-versions --association-id "8dfe3659-4309-493a-8755-0123456789ab" | ||
|
||
Output:: | ||
|
||
{ | ||
"AssociationVersions": [ | ||
{ | ||
"AssociationId": "8dfe3659-4309-493a-8755-0123456789ab", | ||
"AssociationVersion": "1", | ||
"CreatedDate": 1550505536.726, | ||
"Name": "AWS-UpdateSSMAgent", | ||
"Parameters": { | ||
"allowDowngrade": [ | ||
"false" | ||
], | ||
"version": [ | ||
"" | ||
] | ||
}, | ||
"Targets": [ | ||
{ | ||
"Key": "InstanceIds", | ||
"Values": [ | ||
"i-1234567890abcdef0" | ||
] | ||
} | ||
], | ||
"ScheduleExpression": "cron(0 00 12 ? * SUN *)", | ||
"AssociationName": "UpdateSSMAgent" | ||
} | ||
] | ||
} |
Oops, something went wrong.