Menu

AppConfig feature flags in Lambda: safe rollouts
📰

AppConfig feature flags in Lambda: safe rollouts

DEV Community: typescript·Sascha Mirow-Stanitzok·11 days ago
#6iqlfXVK
#devtotypescript#devto#dev#appconfig#flags
Reading 0:00
15s threshold

AppConfig feature flags let you switch on new features in Lambda without redeploying, and they do it step by step instead of for everyone at once. That last part is why I stop using Parameter Store once a switch changes real behavior. A value in Parameter Store applies everywhere immediately. A flag in AppConfig first reaches a share of your execution environments, gets watched, and rolls back by itself if errors show up.

In this article you build all of that with AWS CDK and TypeScript: a small price API for a fictional cinema with a Sunday discount as a feature flag, a kill switch, a gradual rollout and a CloudWatch alarm that pulls the brake when things go wrong. You will also learn what it costs and where I would have tripped up myself.

In short

AWS AppConfig delivers feature flags to your Lambda functions in a controlled way: the AppConfig Agent extension keeps the flags in a local cache, and a deployment strategy rolls changes out in stages, including automatic rollback through a CloudWatch alarm.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.