You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even simpler, turns out cloud-init supports this out of the box with the disable_ec2_metadata configuration option, just need to drop that in /etc/cloud.cfg.d/
Not sure it's such a good idea, but would be easy as pie.
Adding this at the end of bootup:
Block AWS metadata service to non-root users
iptables -A OUTPUT -p tcp -d 169.254.169.254 -m owner --uid-owner root -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp -d 169.254.169.254 -j REJECT
The text was updated successfully, but these errors were encountered: