- AWS: Running a docker-image with ECS
- AWS: Running a docker-image with ECS (part 2)
- AWS: Running a docker-image with ECS (part 3) Stop it!
So let's delete this service.
But after removing the ECS cluster and task definition still an entry at route 53 remains:
The resource hostedzone/Z3JCO1N1BVHCKX can only be managed through servicediscovery.amazonaws.com (arn:aws:servicediscovery:eu-west-1:803404058350:namespace/ns-so7m3qbqbatzmlgn)
But the solution is the aws cli (for installation take a look here):
schroff@zerberus:~/AWS$ aws servicediscovery list-services { "Services": [ { "Id": "srv-46ffbkbwzupvblsb", "Arn": "arn:aws:servicediscovery:eu-west-1:803404058350:service/srv-46ffbkbwzupvblsb", "Name": "my-nginx-service" }, { "Id": "srv-nicoewsbpufb3tlk", "Arn": "arn:aws:servicediscovery:eu-west-1:803404058350:service/srv-nicoewsbpufb3tlk", "Name": "my-ecs-service-on-fargate" } ] } schroff@zerberus:~/AWS$ aws servicediscovery delete-service --id srv-46ffbkbwzupvblsb schroff@zerberus:~/AWS$ aws servicediscovery delete-service --id srv-nicoewsbpufb3tlk
and
schroff@zerberus:~/AWS$ aws servicediscovery list-namespaces
{
"Namespaces": [
{
"Type": "DNS_PRIVATE",
"Id": "ns-so7m3qbqbatzmlgn",
"Arn": "arn:aws:servicediscovery:eu-west-1:803404058350:namespace/ns-so7m3qbqbatzmlgn",
"Name": "local"
}
]
}
Take the id and delete this namespace:
schroff@zerberus:~/AWS$ aws servicediscovery delete-namespace --id=ns-so7m3qbqbatzmlgn
{
"OperationId": "4kdit33kf7kfuawscpfgifcrdktynen5-jog7l6h7"
}
And the the hosted zone was gone:
Postings related to AWS:
- Amazon Web Services: A Start into AWS
- AWS: Running a docker-image with ECS
- AWS: Running a docker-image with ECS (part 2)
- AWS: Running a docker-image with ECS (part 3): Stop it!
- AWS: Networking - Virtual Privat Cloud
- AWS: Billing - how to delete a route 53
- AWS: Installing aws cli (Amazon Web Service Commandline)
Nice blog. You have provided such a useful information in this blog. Thanks for sharing.
ReplyDeleteAWS Training
AWS Online Training
Amazon Web Services Online Training
AWS Training in Hyderabad
AWS Training in Ameerpet