Reputation: 709
We use an Azure blob storage as our Terraform remote state, and I'm trying to move state info about specific existing resources to a different container in that Storage Account. The new container (terraforminfra-v2) already exists, and the existing Terraform code points to the old container (terraforminfra). I've tried the following steps:
The last command seems to run for a bit like it's doing something, but when it completes (with no hint of an error), there still is no state info in the new container.
Is it because I answer 'no' in step #3, does this mean it doesn't actually change to which remote state it "points"? Related to that, is there any way with the "terraform state" command to tell where your state is?
Am I missing a step here? Thanks in advance.
Upvotes: 6
Views: 8617
Reputation: 709
OK, I think I figured out how to do this (or at least, these steps seemed to work):
I then used "terraform state list" and "terraform plan" in the new folder to sanity check that everything seemed to be there.
Upvotes: 4