Category: Terraform

If you are using Terraform for managing Infrastructure as code, you might run into a situations where you will need to cherry pick a few terraform resources from one remote state file and move them to another remote state file. This blog post will help you to do just that. Below are the series of steps that you can follow to move resources from one remote state file to another terraform state file.

Goal is to move a gcs bucket named as bucket_in_src created in source-tf-project to bucket_in_dest in dest-tf-project

Finally push the remote state file of dest-tf-project that we pulled to local in the step #1

Related Articles