Covering all your digital reading needs.
Create AWS Lightsail instance via AWS Lightsail CLI
aws lightsail create-instances --instance-names "lazylibrarian-vm" \
--availability-zone eu-west-2a --blueprint-id centos_7_1901_01 \
--bundle-id small_2_0 --user-data file://user-data.txt
You can find the script in /var/lib/cloud/instance/user-data.txt
on the instance
aws lightsail open-instance-public-ports \
--port-info fromPort=443,toPort=443,protocol=TCP --instance-name lazylibrarian-vm