code: def sync_and_deploy_gateway(collector):
      
      configuration = collector.configuration
      aws_syncr = configuration['aws_syncr']
      find_gateway(aws_syncr, configuration)
  
      artifact = aws_syncr.artifact
      aws_syncr.artifact = ""
      sync(collector)
  
      aws_syncr.artifact = artifact
      deploy_gateway(collector)
docs: Do a sync followed by deploying the gateway