PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
ssm
**To get details of an association** This example describes the association for the specified association ID. Command:: aws ssm describe-association --association-id "8dfe3659-4309-493a-8755-0123456789ab" Output:: { "AssociationDescription": { "Name": "AWS-GatherSoftwareInventory", "AssociationVersion": "1", "Date": 1534864780.995, "LastUpdateAssociationDate": 1543235759.81, "Overview": { "Status": "Success", "AssociationStatusAggregatedCount": { "Success": 2 } }, "DocumentVersion": "$DEFAULT", "Parameters": { "applications": [ "Enabled" ], "awsComponents": [ "Enabled" ], "customInventory": [ "Enabled" ], "files": [ "" ], "instanceDetailedInformation": [ "Enabled" ], "networkConfig": [ "Enabled" ], "services": [ "Enabled" ], "windowsRegistry": [ "" ], "windowsRoles": [ "Enabled" ], "windowsUpdates": [ "Enabled" ] }, "AssociationId": "8dfe3659-4309-493a-8755-0123456789ab", "Targets": [ { "Key": "InstanceIds", "Values": [ "*" ] } ], "ScheduleExpression": "rate(24 hours)", "LastExecutionDate": 1550501886.0, "LastSuccessfulExecutionDate": 1550501886.0, "AssociationName": "Inventory-Association" } } **To get details of an association for a specific instance and document** This example describes the association between an instance and a document. Command:: aws ssm describe-association --instance-id "i-1234567890abcdef0" --name "AWS-UpdateSSMAgent" Output:: { "AssociationDescription": { "Status": { "Date": 1487876122.564, "Message": "Associated with AWS-UpdateSSMAgent", "Name": "Associated" }, "Name": "AWS-UpdateSSMAgent", "InstanceId": "i-1234567890abcdef0", "Overview": { "Status": "Pending", "DetailedStatus": "Associated", "AssociationStatusAggregatedCount": { "Pending": 1 } }, "AssociationId": "d8617c07-2079-4c18-9847-1234567890ab", "DocumentVersion": "$DEFAULT", "LastUpdateAssociationDate": 1487876122.564, "Date": 1487876122.564, "Targets": [ { "Values": [ "i-1234567890abcdef0" ], "Key": "InstanceIds" } ] } }
[+]
..
[-] list-compliance-items.rst
[edit]
[-] list-command-invocations.rst
[edit]
[-] describe-automation-step-executions.rst
[edit]
[-] update-service-setting.rst
[edit]
[-] get-parameters.rst
[edit]
[-] send-automation-signal.rst
[edit]
[-] get-service-setting.rst
[edit]
[-] describe-maintenance-windows.rst
[edit]
[-] create-maintenance-window.rst
[edit]
[-] put-parameter.rst
[edit]
[-] delete-maintenance-window.rst
[edit]
[-] get-maintenance-window-task.rst
[edit]
[-] describe-association-execution-targets.rst
[edit]
[-] delete-inventory.rst
[edit]
[-] describe-patch-baselines.rst
[edit]
[-] list-associations.rst
[edit]
[-] get-maintenance-window-execution-task-invocation.rst
[edit]
[-] get-parameters-by-path.rst
[edit]
[-] get-parameter-history.rst
[edit]
[-] start-session.rst
[edit]
[-] update-maintenance-window-target.rst
[edit]
[-] get-default-patch-baseline.rst
[edit]
[-] describe-sessions.rst
[edit]
[-] put-inventory.rst
[edit]
[-] list-document-versions.rst
[edit]
[-] describe-instance-patch-states-for-patch-group.rst
[edit]
[-] describe-effective-patches-for-patch-baseline.rst
[edit]
[-] describe-maintenance-window-execution-tasks.rst
[edit]
[-] describe-association.rst
[edit]
[-] describe-effective-instance-associations.rst
[edit]
[-] describe-document-permission.rst
[edit]
[-] delete-association.rst
[edit]
[-] update-patch-baseline.rst
[edit]
[-] describe-instance-associations-status.rst
[edit]
[-] list-resource-data-sync.rst
[edit]
[-] describe-maintenance-window-tasks.rst
[edit]
[-] describe-document.rst
[edit]
[-] register-target-with-maintenance-window.rst
[edit]
[-] remove-tags-from-resource.rst
[edit]
[-] get-inventory.rst
[edit]
[-] delete-document.rst
[edit]
[-] list-compliance-summaries.rst
[edit]
[-] resume-session.rst
[edit]
[-] put-compliance-items.rst
[edit]
[-] create-association-batch.rst
[edit]
[-] delete-parameters.rst
[edit]
[-] delete-activation.rst
[edit]
[-] stop-automation-execution.rst
[edit]
[-] describe-maintenance-window-targets.rst
[edit]
[-] create-association.rst
[edit]
[-] update-maintenance-window.rst
[edit]
[-] update-document-default-version.rst
[edit]
[-] delete-resource-data-sync.rst
[edit]
[-] list-inventory-entries.rst
[edit]
[-] describe-maintenance-windows-for-target.rst
[edit]
[-] describe-maintenance-window-schedule.rst
[edit]
[-] create-patch-baseline.rst
[edit]
[-] describe-patch-groups.rst
[edit]
[-] describe-parameters.rst
[edit]
[-] get-parameter.rst
[edit]
[-] get-inventory-schema.rst
[edit]
[-] start-automation-execution.rst
[edit]
[-] cancel-command.rst
[edit]
[-] list-tags-for-resource.rst
[edit]
[-] get-automation-execution.rst
[edit]
[-] get-patch-baseline-for-patch-group.rst
[edit]
[-] create-activation.rst
[edit]
[-] describe-maintenance-window-executions.rst
[edit]
[-] list-documents.rst
[edit]
[-] register-task-with-maintenance-window.rst
[edit]
[-] deregister-target-from-maintenance-window.rst
[edit]
[-] get-deployable-patch-snapshot-for-instance.rst
[edit]
[-] describe-association-executions.rst
[edit]
[-] describe-activations.rst
[edit]
[-] update-association.rst
[edit]
[-] terminate-session.rst
[edit]
[-] deregister-managed-instance.rst
[edit]
[-] create-resource-data-sync.rst
[edit]
[-] describe-instance-information.rst
[edit]
[-] update-managed-instance-role.rst
[edit]
[-] get-document.rst
[edit]
[-] list-resource-compliance-summaries.rst
[edit]
[-] register-default-patch-baseline.rst
[edit]
[-] describe-maintenance-window-execution-task-invocations.rst
[edit]
[-] deregister-patch-baseline-for-patch-group.rst
[edit]
[-] get-maintenance-window-execution-task.rst
[edit]
[-] register-patch-baseline-for-patch-group.rst
[edit]
[-] create-document.rst
[edit]
[-] update-document.rst
[edit]
[-] update-association-status.rst
[edit]
[-] list-association-versions.rst
[edit]
[-] list-commands.rst
[edit]
[-] update-maintenance-window-task.rst
[edit]
[-] describe-instance-patch-states.rst
[edit]
[-] describe-instance-patches.rst
[edit]
[-] label-parameter-version.rst
[edit]
[-] describe-inventory-deletions.rst
[edit]
[-] describe-automation-executions.rst
[edit]
[-] get-command-invocation.rst
[edit]
[-] get-maintenance-window-execution.rst
[edit]
[-] deregister-task-from-maintenance-window.rst
[edit]
[-] start-associations-once.rst
[edit]
[-] send-command.rst
[edit]
[-] get-patch-baseline.rst
[edit]
[-] add-tags-to-resource.rst
[edit]
[-] get-maintenance-window.rst
[edit]
[-] cancel-maintenance-window-execution.rst
[edit]
[-] modify-document-permission.rst
[edit]
[-] get-connection-status.rst
[edit]
[-] delete-patch-baseline.rst
[edit]
[-] delete-parameter.rst
[edit]
[-] describe-available-patches.rst
[edit]
[-] describe-patch-group-state.rst
[edit]