Cleanup the SSM resources

  • Delete the SSM association.

    # Define variables #
    ASSOCIATION=$(aws ssm list-associations \
    --association-filter key=AssociationName,value=appmesh-workshop-state | \
    jq -r ' .Associations | first | .AssociationId')
    # Delete ssm association #
    aws ssm delete-association \
    --association-id $ASSOCIATION
    
  • Delete the SSM document.

    # Delete ssm document #
    aws ssm delete-document \
    --name appmesh-workshop-installenvoy