GCP:复制Google Cloud Platform中的现有项目 [英] GCP: Duplicate an existing project in Google Cloud Platform

查看:61
本文介绍了GCP:复制Google Cloud Platform中的现有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法复制整个项目?该项目包含:2个Cloud SQL:主要+备份1个云存储4倍Google Compute Engine

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.

项目不在同一帐户下.

推荐答案

没有这样的方法可以按原样复制项目.但是,您可以从当前项目开始使用 Terraformer :此CLI工具将生成 Terraform 模板文件.然后,您可以使用这些文件以编程方式在第二个GCP项目中重新创建目标资源(请参见

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).

免责声明:评论和观点是我自己的,而不是雇主的观点.

这篇关于GCP:复制Google Cloud Platform中的现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆