WordPress on Amazon Lightsail – CLI

WordPress on Amazon Lightsail – CLI

Like with some of the other tutorials I have written, it is possible to do the whole deployment via command line. In this case, it is a simple one liner.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
aws lightsail create-instances --instance-names tutorial-sj-002 --availability-zone eu-west-1 --blueprint-id wordpress_5_1_1_2 --bundle-id nano_2_0
aws lightsail create-instances --instance-names tutorial-sj-002 --availability-zone eu-west-1 --blueprint-id wordpress_5_1_1_2 --bundle-id nano_2_0
aws lightsail create-instances --instance-names tutorial-sj-002 --availability-zone eu-west-1 --blueprint-id wordpress_5_1_1_2 --bundle-id nano_2_0
Expected Output

There is certainly a lot more that can be done, and I strongly read up on some of the commands below. The blueprints and bundles will change over time as things get updated.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
aws lightsail get-blueprints
aws lightsail get-bundles
aws lightsail get-blueprints aws lightsail get-bundles
aws lightsail get-blueprints
aws lightsail get-bundles

If you are creating your first instance this way, ensure you download your key. If you are using a default one those are available here.

More reading:
Get-blueprints
Get-bundles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.