Moving Resources in Terraform State

Опубликовано: 22 Сентябрь 2024
на канале: Ned in the Cloud
5k
120

Terraform keeps it's view of the world in a state data, but what if you need to make changes to your configuration without impacting the real-world resources? Enter the mighty 'terraform state mv' command enabling you to do wonderous things like:

- Change the address of a resource in your config
- Move resources into a module
- Move resources into a new state file and config

Shout out to VamsiB for suggesting this as a topic!

You can find my Pluralsight courses here:

And you can always find the example files here:

And, and you can find my Terraform certification guide here: