code: def profile_option(f):
      
      def callback(ctx, param, value):
          state = ctx.ensure_object(Context)
          state.profile = value
          return value
  
      return click.option('--profile',
                          expose_value=False,
                          help='Select a specific profile from your credential file to get AWS credentials.',
                          callback=callback)(f)
docs: Configures --profile option for CLI
  
      :param f: Callback Function to be passed to Click