Curated articles, resources, tips and trends from the DevOps World.
Summary: This is a summary of an article originally published by the source. Read the full original article here →
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
Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com