简体   繁体   English

项目 A 下的资源迁移到 GCP 中同一组织中的项目 B

[英]Resource Under Project A migrate to Project B in same organisation in GCP

Is it possible to migrate the resources in Project A to Project B in same organisation in GCP?是否可以将项目 A 中的资源迁移到 GCP 中同一组织的项目 B 中? If Yes, how can we do that?如果是,我们该怎么做?

In general, the answer is no.一般来说,答案是否定的。 You must recreate services to move them between projects.您必须重新创建服务才能在项目之间移动它们。

There are many dependencies that most services have that are problematic to modify once created.大多数服务都有许多依赖项,一旦创建就很难修改。 Examples are VPC networking, service accounts, IAM permissions, etc. Some are very difficult to change via an automated tool as the changes might break internal applications.例如 VPC 网络、服务帐户、IAM 权限等。有些很难通过自动化工具进行更改,因为这些更改可能会破坏内部应用程序。

You can try to export your resource to terraform and to recreate them in the other project.您可以尝试将您的资源导出到 terraform 并在另一个项目中重新创建它们。 However, nothing magic for the data...然而,数据没有什么神奇的......

There is a preview to generate a terraform.有一个生成 terraform 的预览。 Never tried but it worths to have a look at it https://cloud.google.com/docs/terraform/resource-management/export从未尝试过,但值得一看 https://cloud.google.com/docs/terraform/resource-management/export

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM