Set correct NTP server for AWS in correct file
#!/usr/bin/env bash
# AWS has an own time server
-sed -i "s/^#NTP=/NTP=instance-data.ec2.internal/g" /etc/systemd/system.conf
+sed -i "s/^#NTP=/NTP=169.254.169.123/g" /etc/systemd/timesyncd.conf
# AWS DNS does not support DNSSEC
sed -i 's/^#DNSSEC=allow-downgrade/DNSSEC=false/g' /etc/systemd/resolved.conf
