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.
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
contextoption of typeRecord<string,string|number|boolean>. Then one could fetch a variant like this:Alternative solutions
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.