Reputation: 1
Is it possible to migrate the resources in Project A to Project B in same organisation in GCP ? If Yes, how can we do that ?
Upvotes: 0
Views: 185
Reputation: 75940
You can try to export your resource to terraform and to recreate them in the other project. However, nothing magic for the data...
There is a preview to generate a terraform. Never tried but it worths to have a look at it https://cloud.google.com/docs/terraform/resource-management/export
Upvotes: 0
Reputation: 81454
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.
Upvotes: 0