How to Delete Route53 zone created by ECS service discovery
Issue: When trying Route 53 private hosted zone getting error
The resource hostedzone/Z1OWcan only be managed through servicediscovery.amazonaws.com (arn:aws:servicediscovery:us-east-1:561660628307:namespace/ns-c6lvlchj2gbcsobc)
Resolution: Route 53 hosted zone created by ECS service discovery can’t be deleted through AWS console, you would need AWS CLI for it
- Using the aws-cli have a look at:
$ aws servicediscovery list-services $ aws servicediscovery list-namespaces
- If there are services hanging around the in the NS you cant delete then you could try:
$ aws servicediscovery delete-service --id=ID-FROM-LIST
- Then when you have no services left in the NS you could:
$ aws servicediscovery delete-namespace --id=NS-LIST