A quick overview of the ephemeral resources and write-only feature in Terraform 1.11+
Boardgame
The night drapes the gloomy alleys in a veil of darkness. Jack moves silently through the shadows. The finest investigators of the gaslight era have gathered to catch him—before he slips away forever under cover of night.
Mr. Jack is a two-player deduction game where one player takes on the role of Mr. Jack, attempting to escape the city and erase all traces of his presence, while the other player controls the investigators working to unmask and capture him.
Each turn, players move characters, activate their unique abilities, and position them in either shadow or light. At the end of every round, witnesses reveal whether Jack remains visible—or has once again vanished into the darkness. For more information, visit: boardgamegeek
This short blog post explores ephemeral resources and the new write-only
arguments introduced in Terraform v1.11.0. As you may know, Terraform stores all values—including sensitive ones like secrets—in plain text within the state file. While best practices recommend securing the state file , it’s now possible to go a step further: you can prevent secrets from being stored in the state file at all.
In this post, we’ll walk through a practical use case that shows how to securely pass secret values in your Terraform configuration using these new features—without leaving any trace in the state file.