Drupal on AWS Lightsail
Edit the following lines in user-data.txt
EMAIL=example@mail.com
URL=yoursubdomain.duckns.org
...
Create AWS Lightsail instance via AWS Lightsail CLI
aws lightsail create-instances --instance-names "drupal-vm" --availability-zone eu-west-2a --blueprint-id centos_7_1901_01 --bundle-id nano_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 drupal-vm