1,234
edits
Changes
no edit summary
** Start httpd, everything should be back to as it was.
** Dissasociate the public ip. Everything should keep working.
* Add a 404 check for missing ip:
<source>
<?php
system("curl http://169.254.169.254/latest/meta-data/public-ipv4 2>&1| grep -q '404 - Not Found'", $rc);
if ($rc == 0)
echo "None found";
else
system("curl http://169.254.169.254/latest/meta-data/public-ipv4");
?>
</source>