/** * Removes the ip from elastic ip pool * @param $ip * @param bool $safeMode * * @throws \Exception */ private function releaseElasticIp($ip, $safeMode = false) { if ($safeMode) { throw new \Exception("Safe mode release not implemented yet"); } $this->ec2Client->releaseAddress(['DryRun' => false, 'AllocationId' => $this->getAllocationId($ip)]); }