繁体   English   中英

无法使用 gcloud CLI 命令删除专用服务连接

[英]Unable to delete a private service connection using gcloud CLI command

当我尝试使用 gcloud CLI 删除私有服务连接时,我收到一条错误消息,指出生产者服务(例如:CloudSQL)仍在使用该连接。 此新 GCP 项目中没有创建任何 GCP 资源。

dineshsonachalam@macbook iac % gcloud services vpc-peerings delete --network=default --service=servicenetworking.googleapis.com

ERROR: (gcloud.services.vpc-peerings.delete) The operation resulted in a failure - "Failed to delete connection: Producer services (Eg: CloudSQL, Cloud MemStore etc) are still using this connection"

但我能够使用 Google 控制台 UI 删除私人服务连接。 如果有人分享了如何使用 gcloud CLI 删除私有服务连接,那将非常有帮助。

在此处输入图像描述

我复制了相同的场景,并且能够使用以下方法通过 GCloud 删除专用连接

gcloud services vpc-peerings delete \
        --service=servicenetworking.googleapis.com \
        --network=VPC_NETWORK \
        --project=PROJECT_ID

暂无
暂无

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

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