code: def aws(ctx, profile):
      # Greet the user!
      echo(
          "Welcome to Metaflow! Follow the prompts to configure your "
          "installation.\n",
          bold=True,
      )
  
      # Check for existing configuration.
      if not confirm_overwrite_config(profile):
          ctx.abort()
  
      verify_aws_credentials(ctx)
  
      existing_env = get_env(profile)
      empty_profile = False
      if not existing_env:
          empty_profile = True
  
      env = {}
      env.update(configure_aws_datastore_and_metadata(existing_env))
  
      # Configure AWS Batch for compute if using S3
      if env.get("METAFLOW_DEFAULT_DATASTORE") == "s3":
          if click.confirm(
              "\nMetaflow can scale your flows by "
              + yellow("executing your steps on AWS Batch")
              + ".\nAWS Batch is a strict requirement if you intend "
              "to schedule your flows on AWS Step Functions.\nWould "
              "you like to configure AWS Batch as your compute "
              "backend?",
              default=empty_profile
              or "METAFLOW_BATCH_JOB_QUEUE" in existing_env,
              abort=False,
          ):
              env.update(configure_aws_batch(existing_env))
  
      persist_env({k: v for k, v in env.items() if v}, profile)
  
imports: import json
  import os
  import sys
  from os.path import expanduser
  from metaflow.util import to_unicode
  from metaflow._vendor import click
  from metaflow.util import to_unicode
  from .util import echo_always, makedirs
label_desc: Use image node_id 33 for calling a global function with example usage: aws(ctx, profile) without return types