docs: @Override
      protected void pulsate(ServiceInstance instance, HealthStatus status) {
          // this only work if you create a health status check when you register it
          // we can't really pulsate anywhere because amazon health checks work inverse from this UNLESS you have a custom health check
          Optional<String> opt = instance.getInstanceId();
          if (!opt.isPresent()) {
              // try the metadata
              if (instance.getMetadata().contains("instanceId")) {
                  opt = Optional.of(instance.getMetadata().asMap().get("instanceId"));
              } else {
                  if (LOG.isErrorEnabled()) {
                      LOG.error("Cannot determine the instance ID. Are you sure you are running on AWS EC2?");
                  }
              }
          }
  
          opt.ifPresent(instanceId -> {
              if (discoveryService != null && discoveryService.getHealthCheckCustomConfig() != null) {
                  CustomHealthStatus customHealthStatus = CustomHealthStatus.UNHEALTHY;
  
                  if (status.getOperational().isPresent()) {
                      customHealthStatus = CustomHealthStatus.HEALTHY;
                  }
  
                  UpdateInstanceCustomHealthStatusRequest updateInstanceCustomHealthStatusRequest = new UpdateInstanceCustomHealthStatusRequest()
                                                                                                              .withInstanceId(instanceId)
                                                                                                              .withServiceId(route53AutoRegistrationConfiguration.getAwsServiceId())
                                                                                                              .withStatus(customHealthStatus);
                  getDiscoveryClient().updateInstanceCustomHealthStatus(
                          updateInstanceCustomHealthStatusRequest);
              }
  
              if (status.getOperational().isPresent() && !status.getOperational().get()) {
                  getDiscoveryClient().deregisterInstance(new DeregisterInstanceRequest().withInstanceId(instanceId).withServiceId(route53AutoRegistrationConfiguration.getAwsServiceId()));
                  LOG.info("Health status is non operational, instance id " + instanceId + " was de-registered from the discovery service.");
              }
  
          });
  
      }