A quick guide to enable S3 native state locking in Terraform 1.11.0
Boardgame
At the outskirts of our solar system, a mysterious planet might be hiding. In The Search for Planet X, each player takes on the role of an astronomer trying to locate the hidden planet, known as Planet X. It is a deduction game where players gather clues, and as more objects are discovered, they narrow down the possible locations of Planet X. For more information, visit: boardgamegeek
In August 2024, AWS introduced AWS S3 conditional writes, a feature that prevents objects from being overwritten when uploading data. This enhancement allowed Terraform to eliminate the need for consensus mechanisms to lock state file writing on S3 objects. Finally, this feature has been officially added to Terraform as General Availability (GA) in version v1.11.0 this week. This blog post provides a quick guide on enabling S3 native state locking in Terraform 1.11.0.