code: def _get_deployment_instance_summary(awsclient, deployment_id, instance_id):
      
      client_codedeploy = awsclient.get_client('codedeploy')
      request = {
          'deploymentId': deployment_id,
          'instanceId': instance_id
      }
      response = client_codedeploy.get_deployment_instance(**request)
      return response['instanceSummary']['status'], \
             response['instanceSummary']['lifecycleEvents'][-1]['lifecycleEventName']
docs: instance summary.
  
      :param awsclient:
      :param deployment_id:
      :param instance_id:
      return: status, last_event