Amazon Lightsail is a new service on AWS which appears to be targeted at hosts like Digital Ocean and Linode. There’s a pretty neat “Launch Script” feature! Here’s a quick guide to automated Docker installs.

Login to AWS, jump to Lightsail, and select “Base OS” and the option for “Ubuntu 16.04”.

For this example, we’re going to use the Docker PHP Image. You’ll probably want to modify the last two lines of this script to pull your own Docker image. In the “Launch Script” box, enter this code:

1 Comments

Thank you, your example was very helpful! Do you know if there’s any way to view your launch script once the instance is launched? I couldn’t find it on the aws console, or anywhere on my instance file system.