code: def aws_cli(*cmd):
      
      old_env = dict(os.environ)
      try:
  
          # Environment
          env = os.environ.copy()
          env['LC_CTYPE'] = u'en_US.UTF'
          os.environ.update(env)
  
          # Run awscli in the same process
          exit_code = create_clidriver().main(*cmd)
  
          # Deal with problems
          if exit_code > 0:
              raise RuntimeError('AWS CLI exited with code {}'.format(exit_code))
      finally:
          os.environ.clear()
          os.environ.update(old_env)
docs: Invoke aws command.