无法删除 AWS Route53 中的私有托管区域
Can't delete a private hosted zone in AWS Route53
我无法从控制台和 CLI 中删除私有托管区域。
请查看下面的屏幕截图
抛出以下错误
The resource hostedzone/Z346QOK8DECBDU can only be managed through servicediscovery.amazonaws.com (arn:aws:servicediscovery:us-east-1:757712384777:namespace/ns-oekfhwgvesmkdb4i)
私人专区有以下记录
我也尝试过使用 AWS CLI 命令删除
aws servicediscovery list-services
aws servicediscovery delete-service --id=ID-FROM-LIST
aws servicediscovery delete-namespace --id=NS-LIST
这没有用。我收到以下错误
An error occurred (NamespaceNotFound) when calling the DeleteNamespace operation: NS-LIST
An error occurred (ServiceNotFound) when calling the DeleteService operation: ID-FROM-LIST
如果有其他方法,请告诉我。
尝试从 AWS 控制台删除正在使用此托管区域的 AWS ECS 服务,然后如果您有任何服务发现资源(如命名空间),则使用以下命令删除它们:
使用以下命令列出特定区域的服务:
aws servicediscovery list-services --region <region_name>
如果没有关联的服务,则尝试查找命名空间:
aws servicediscovery list-namespaces --region <region_name>
然后你可以删除命名空间如下:
aws servicediscovery delete-namespace --id <service_discovery_namespace_id> --region <region_name>
从输出来看,您似乎没有列出任何服务,但仍尝试使用 --region
选项。
您的 namespace_id
似乎未正确通过。它的 arn
已显示在第一条错误消息中。
要删除私有托管区域:
To delete a private hosted zone that Amazon ECS created when you created a service using service discovery, delete the Amazon ECS services that are using the namespace, and delete the namespace
参考:
如果你能访问控制台就很简单了
在aws控制台搜索“AWS cloud map” – >你可以看到命名空间 – 进入命名空间 - >删除服务 - >返回并删除命名空间 - >检查你的route53控制台,托管区域不会在那里
我无法从控制台和 CLI 中删除私有托管区域。
请查看下面的屏幕截图
抛出以下错误
The resource hostedzone/Z346QOK8DECBDU can only be managed through servicediscovery.amazonaws.com (arn:aws:servicediscovery:us-east-1:757712384777:namespace/ns-oekfhwgvesmkdb4i)
私人专区有以下记录
我也尝试过使用 AWS CLI 命令删除
aws servicediscovery list-services
aws servicediscovery delete-service --id=ID-FROM-LIST
aws servicediscovery delete-namespace --id=NS-LIST
这没有用。我收到以下错误
An error occurred (NamespaceNotFound) when calling the DeleteNamespace operation: NS-LIST
An error occurred (ServiceNotFound) when calling the DeleteService operation: ID-FROM-LIST
如果有其他方法,请告诉我。
尝试从 AWS 控制台删除正在使用此托管区域的 AWS ECS 服务,然后如果您有任何服务发现资源(如命名空间),则使用以下命令删除它们:
使用以下命令列出特定区域的服务:
aws servicediscovery list-services --region <region_name>
如果没有关联的服务,则尝试查找命名空间:
aws servicediscovery list-namespaces --region <region_name>
然后你可以删除命名空间如下:
aws servicediscovery delete-namespace --id <service_discovery_namespace_id> --region <region_name>
从输出来看,您似乎没有列出任何服务,但仍尝试使用 --region
选项。
您的 namespace_id
似乎未正确通过。它的 arn
已显示在第一条错误消息中。
要删除私有托管区域:
To delete a private hosted zone that Amazon ECS created when you created a service using service discovery, delete the Amazon ECS services that are using the namespace, and delete the namespace
参考:
如果你能访问控制台就很简单了
在aws控制台搜索“AWS cloud map” – >你可以看到命名空间 – 进入命名空间 - >删除服务 - >返回并删除命名空间 - >检查你的route53控制台,托管区域不会在那里