It's Thursday, a little after six. A teammate's pull request is waiting for you:
Activity feed: sort items by creation time
6 files changed, +214 −9
Most of it is what you'd expect: a new Lambda function, a queue, an IAM policy, some outputs. Somewhere in the middle, in tables.tf , is this:
resource "aws_dynamodb_table" "items" { name = "demo-items" hash_key = "pk" - range_key = "sk" + range_key = "created_at"
Enter fullscreen mode
Exit fullscreen mode
CI is green. You open the plan step's log, scroll past the provider downloads, and read the summary at the bottom: Plan: 16 to add, 9 to change, 2 to destroy. A new feature, a few new resources; it looks about right. You approve, and go home.
The next morning, the demo-items table is empty, and the Lambda function that reads its stream has stopped getting events.
Nothing was hidden.…