You modified your Terraform configuration and switched from local backend to remote backend by modifying main.tf file. What do you need to migrate the local state to the remote backend?

Experience Level: Junior
Tags: Terraform

Answer

Run the following command:

terraform init

This way Terraform CLI will automatically run migration of local state to remote state using the configured remote backend.

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