DEV Community

The bug that made my Terraform drift detector cry wolf (and the one-line fix) (opens in new tab)

Discussed on DEV

terraform plan tells you what Terraform changed. It says nothing about the RDS parameter someone tweaked in the console at 2am, or the security group rule added by hand during an incident. To catch that kind of drift, you have to compare your tfstate against what AWS actually returns from the API — yourself. I built exactly that, and the first version was useless. Not because the diff was wrong, but because it screamed about drift on every single resource, every single time. Here's the bug, a...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help