Have you failed a job interview?
Send us your job interview questions and get correct answers.

Using Terraform CLI, how can you experiment with Terraform interpolations?

Experience Level: Junior
Tags: Terraform

Answer

Run the following command:

terraform console

This starts an interactive console for experimenting with Terraform interpolations. The command will open an interactive console that you can use to type interpolations into and inspect their values. The command loads the current state. This lets you explore and test interpolations before using them in future configurations.

This command will never modify your state.

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