有没有办法在 gcp 中重命名子网?在控制台中或使用 Terraform。
我宁愿不删除并重新创建子网,因为还有其他资源正在使用该子网。
根据 Google 文档,子网名称一旦创建就无法更改。
例子:
Change subnet name = sn-env-north-01
to this = sn-dev-north-01
谢谢。
最佳答案
实际上,您已经回答了您的问题 - 这是不可能的。
根据文档Using VPC networks节Working with subnets :
You cannot change the name or region of a subnet after you have created it. However, you can delete a subnet and replace it, as long as no resources are using it.
您可以尝试通过填写 feature request 来更改此行为在Google Public Issue Tracker .
关于google-cloud-platform - 如何在 gcp 中重命名子网?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63948764/