What do you need to know about Terraform state in relation to security?

Experience Level: Junior
Tags: Terraform

Answer

Terraform writes the backend configuration in plain text to terraform.tfstate file.

It can contain sensitive information and credentials.

For that reason it is important to keep the state protected.

You shouldn't store credentials and other sensitive data hardcoded in configuration.

Comments

No Comments Yet.
Be the first to tell us what you think.
Terraform CLI
Terraform CLI

Are you learning Terraform ? Try our test we designed to help you progress faster.

Test yourself