Moving Resources in Terraform State
Nov 11, 2020•14 min•Season 1Ep. 151
Episode description
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: https://app.pluralsight.com/profile/author/edward-bellavance
And you can always find the example files here: https://github.com/ned1313/terraform-tuesdays
And, and you can find my Terraform certification guide here: https://leanpub.com/terraform-certified/