AWS implementation is based on IDs provided by SQS. These are relatively large values, which causes compatibility issues in ZooKeeper's Java client as they no longer fit into a 32-bit integer. Instead, we should process one change during deployment and store the base SQS value; we can use that to subtract counter values later and obtain counters starting from 0.