Provisioning server
$ ssh-keygen -y -f ec2-keypair.pem
I have created some scripts to use. Please review these carefully *before* using them. The steps to use them are in the readme.
If this system would be used by multiple users, then a quota system, especially for disk and perhaps for bandwidth would make sense. For disk quota, we can use quota(1). Since this is a single-user system, i've opted to not quota disks. Besides, there's only 8 GB of root space, there's not much point in putting quota there.
I would consider these to be mandatory, which my scripts do/check:
Due to the logrotate package, it's really easy to do log rotation.
The logrotate-activate script
adds a rule for /var/log/auth.log
then adds a system-wide script to run it daily.
Although the ubuntu image already provides /etc/cron.daily/logrotate, it exits if there's systemd timer.
Since we wish to use cron instead, i put it in the system-wide crontab.
The crontab file should contain:
0 0 * * * root /usr/sbin/logrotate /etc/logrotate.conf