aws ssm update-association-status
Updates the status of the Amazon Web Services Systems Manager document (SSM document) associated with the specified managed node. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To update the association status
The following update-association-status example updates the association status of the association between an instance and a document.
aws ssm update-association-status --name "AWS-UpdateSSMAgent" --instance-id "i-1234567890abcdef0" --association-status "Date=1424421071.939,Name=Pending,Message=temp_status_change,AdditionalInfo=Additional-Config-Needed"Identify--nameThe name of the SSM document.--instance-idThe managed node ID.--association-statusThe association status.Its output, shortened
{
"AssociationDescription": {
"Name": "AWS-UpdateSSMAgent",
"InstanceId": "i-1234567890abcdef0",
"AssociationVersion": "1",
"Date": 1550507529.604,
"LastUpdateAssociationDate": 1550507806.974,
"Status": {
"Date": 1424421071.0,
"Name": "Pending",
"Message": "temp_status_change",
"AdditionalInfo": "Additional-Config-Needed"
},
"Overview": {
"Status": "Success",
"AssociationStatusAggregatedCount": {
"Success": 1
}
},
"DocumentVersion": "$DEFAULT",
"AssociationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"Targets": [
{
"Key": "InstanceIds",
"Values": [
"i-1234567890abcdef0"
]
}
],
"LastExecutionDate": 1550507808.0,
… 3 more linesFor more information, see Working with associations in Systems Manager in the AWS Systems Manager User Guide.
Options
--association-statusThe association status.--instance-idThe managed node ID.--nameThe name of the SSM document.