Open
Description
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
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Ideas