Skip to content

Comment on Ask HN: AWS DynamoDB Triggers – A Time Bomb in Your Production Environment?

Comments

Consider this scenario: 1. You have a critical DynamoDB table with a Lambda trigger handling important business logic 2. A developer pushes changes to the Lambda's `$LATEST` version for testing 3. Surprise! Those changes are now processing your production data

...why would a DynamoDB trigger for prod data be pointing to a Lambda where people push things that are still being tested?

The workarounds are all suboptimal...- Maintain separate tables for different environments

This is not "suboptimal" or a "workaround"; it's the proper way to do things lol

Just as one would have separate RDS instances for QA/staging/test versus production.

Test Lambda --> Test DynamoDB table

Prod Lambda --> Prod DynamoDB table

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.