Skip to content

DeregisterInstance

Source: src/AWS/CloudMap/DeregisterInstance.ts

Runtime binding for servicediscovery:DeregisterInstance — lets a self-registering workload remove its own Cloud Map instance (and the Route 53 records/health check Cloud Map created for it).

The response carries an OperationId; deregistration completes asynchronously on the Cloud Map side.

const deregisterInstance = yield* AWS.CloudMap.DeregisterInstance(service);
yield* deregisterInstance({ InstanceId: "worker-1" });