Configures --profile option for CLI

    :param f: Callback Function to be passed to Click

def profile_option(f):
    """
    Configures --profile option for CLI

    :param f: Callback Function to be passed to Click
    """
    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)