On Sat, Dec 01, 2018 at 10:44:05AM -0400, Jared McNeill wrote: > https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html > > On Sat, 1 Dec 2018, m...@netbsd.org wrote: > > > This feels all kinds of insecure, is that the official way to do it?
Would it be possible (grep in dmesg, check sysctl, whatever?) to verify we are running on an EC2? And if not, require some explicit rc.conf entry to force this (e.g. for testing puroses), but in usual setups default this script to off? Martin