Skip to content

Feature request: Add support for multi-variant AWS AppConfig feature flags #3754

Open
@HaaLeo

Description

@HaaLeo

Use case

AWS AppConfig multi-variant feature flags enable users to implement use cases such as user segmentation or traffic splitting. Those use cases are described in more detail here.

Solution/User Experience

Taking the example found here one could introduce an optional context option of type Record<string,string|number|boolean>. Then one could fetch a variant like this:

import { getAppConfig } from '@aws-lambda-powertools/parameters/appconfig';

const result = await getAppConfig('ConfigName', {
    environment: 'dev',
    application: 'MyApp',
    context: {
        email: 'jane_doe@example.org',
        opted_in_to_beta: false
    }
});

Alternative solutions

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussingThe issue needs to be discussed, elaborated, or refinedfeature-requestThis item refers to a feature request for an existing or new utilityneed-customer-feedbackRequires more customers feedback before making or revisiting a decisionparametersThis item relates to the Parameters Utility

    Type

    No type

    Projects

    Status

    Ideas

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions