Is there a way to duplicate an entire project? The project contains: 2x Cloud SQL: main + backup 1x Cloud Storage 4x Google Compute Engine
We have an exactly the same project already built up and configured, so it would be much easier for us if we could just make a copy of those.
The projects are not under the same account.
Use Google Cloud Share command to copy image from one project to another project. Actually, you can directly use this image by choosing from custom image to create a boot disk when you create a new VM. Note: Use project_id in the command , not project name.
There is no such a way to replicate as-is a project. However, you can use Terraformer starting from your current project: this CLI tool will generate Terraform template files starting from the existing infrastructure (reverse Terraform). Then, you can use these files to re-create the target resources within a second GCP project in a programmatic fashion (see https://cloud.google.com/community/tutorials/getting-started-on-gcp-with-terraform).
Disclaimer: Comments and opinions are my own and not the views of my employer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With