The idea here is to give a set of "common sense" defaults for running Amazon Linux 2 on Lightsail. These defaults include:
- Automatic Updates
- Live Kernel Patching
- Automatic Reboots when Required by Updates
Either run the setup.sh
file directly like this:
curl -fsSL https://gist.githubusercontent.com/RulerOf/5be53075c7d679c961a433ae0c258194/raw/setup.sh | sudo bash
Or copy/paste it directly into your terminal.
Or supply the yaml version as user-data to your instance. (This doesn't appear to work on Lightsail, but it would on EC2)