Menu

1 / 7

5 Terraform changes that look harmless in a pull request (and what they really do)

DEV Community: terraform·yash agarwal·about 5 hours ago
#bJDKrQcp
#devtoterraform#devto#dev#plan#terraform
Long article (2963 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

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