DEV Community

Great Stack to Doesn't Work Bonus: 10 Terraform 'I Wish I Knew This Earlier' Moments (opens in new tab)

Discussed on DEV

Great Stack to Doesn't Work — Bonus 10 Terraform "I Wish I Knew This Earlier" Moments Hard-won lessons from hundreds of terraform apply runs. 1. State locking saves careers. Two engineers run terraform apply simultaneously. Both read the same state. Both make changes. One overwrites the other. Resources are orphaned. State is corrupted. Use a remote backend with locking. For AWS: terraform { backend "s3" { bucket = "my-terraform-state" key = "prod/terraform.tfstate" region = "eu-west-1" dynam...

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