There is a longstanding systemd/networkd bug that causes our pet instances (AWS EC2 Ubuntu) to fall off the network, detailed in this gist.
To confirm if you are affected, look for messages like Could not set DHCPv4 address: Connection timed out
in syslog by running grep 'Connection timed out' /var/log/syslog
or zgrep 'Connection timed out' /var/log/syslog.*.gz
on your pet.
If your pet is currently inaccessible, you'll need to restart it via the awscli by running:
aws --profile "$PROFILE" ec2 reboot-instances --instance-ids "$INSTANCE"