Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying resources from one project to another #6063

Closed
sagar-raythatha opened this issue Apr 7, 2020 · 3 comments
Closed

Copying resources from one project to another #6063

sagar-raythatha opened this issue Apr 7, 2020 · 3 comments

Comments

@sagar-raythatha
Copy link

Hi,

I am very new to the Terraform so it might be the basic question.

I am working with the large projects where we have developed things in the Dev project and now we want to setup same things in the another project that we are using as the Prod project.

As a part of a task I want to copy the resources from one project to another.
Resources need to be copied: BigQuery Tables, BigQuery views, Cloud Functions, Data flow jobs, Cloud Storage buckets.

I saw in all the tutorials we are creating resources from the base. Can we identify the configuration from one project and replicate same in another using the TerraForm script?

Thank you in advance.

@venkykuberan venkykuberan self-assigned this Apr 7, 2020
@venkykuberan
Copy link
Contributor

@sagar-raythatha refer this doc. if you want to maintain the states of each environment (dev, stage, prod) of the same config - https://www.terraform.io/docs/state/workspaces.html

Please let me know if this is what you are looking for ?

@venkykuberan
Copy link
Contributor

I believe this one https://discuss.hashicorp.com/t/best-practice-for-reusing-with-many-environments/2704/2 will answer your question. As this is not related to GCP provider i would encourage you to raise it in Tearraform general forum for more related info.

@ghost
Copy link

ghost commented May 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators May 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants