Verdant TCS

Provision an Amazon Lightsail server using the AWS Lightsail API

5 min read

IMPORTANT

Amazon Lightsail only supports a limited number of static IP addresses by default. You may need to get in touch with their support after you've created your first 5 servers to increase your allowed limits.

The above warning means that if you create more than 5 servers, number 6 onwards may not be assigned a static IP address, and this has the potential to cause some serious problems for these servers. 

If your Lightsail server does not have a static IP, then when this server restarts for the first time, it may be assigned a completely new IP address. This will disconnect your server from vCanopy, but more importantly any websites that are on this server will cease to be accessible because the DNS records will now be pointing to the wrong IP address.

Not everyone runs into this issue, but please keep this in mind if you’re creating multiple Lightsail servers at the same time and/or you have more than 5 servers already. You can learn more directly from AWS here:

https://aws.amazon.com/lightsail/faq/#:~:text=You%20can%20currently%20create%20up,certificates%20during%20each%20calendar%20year.

Step 1. Sign in to the IAM console

Log in to your IAM console.

Once inside the console, choose Policies in the left navigation pane.

Step 2. Create a Lightsail vCanopy policy

In the Policies, panel click create.

Clicking create will fire up a wizard as shown above. Choose Lightsail Sevice and in action option, choose All Lightsail Actions in Manual Action.

Under Resources choose All Resources. Please check the image below)

Click Review Policy. The next wizard window pops up, set the name of policy to Lightsail-vCanopy-FULL then click Create policy.

Step 3. Create a Key and Secret.

Still, in the IAM console, choose users on the left-hand navigation screen. Click on Create User

The Add user wizard activates. Choose a suitable name for your user and put a tick programmatic access checkbox.

Choose Next: Permissions. Click Attach Existing Policy Option then choose the Lightsail-vCanopy-Full policy we created in step 2.

Click Next to the tags Panel, leave everything default here and click User Review to and cross-check the user name and chosen security policy.

If all is correct click Create User. The next panel will have the Key and Secret for your user. Please note these values somewhere since they will NEVER be shown again. You can download these credentials as a CSV file.

Step 4. Go to your vCanopy Settings

Login to your vCanopy account and click the Your Settings menu item in the dropdown menu accessible by clicking on your username and icon.

Step 5. Enter your Amazon Lightsail Key and Secret

Locate and click the Integrations option in the left horizontal menu, and then enter the AWS Personal Access Token you copied in Step.3 above into the Key and Secret fields, give your key a name, and then click Create.

Step 6. View/Edit your Amazon Lightsail API Token

Your AWS API Token will now be available from this settings panel. If you wish to edit or change your API Token, you may do this by clicking the down arrow followed by the edit button with the blue pencil icon.

A popup modal will appear and you can easily change your AWS Personal Access Token and click Update.

Step 7. Go to the vCanopy Home to provision an Instance

Now we have our Amazon Lightsail Key and Secret saved in our vCanopy settings we are able to provision Instances with it from within vCanopy. To do this, first click Home from the vCanopy main menu to access the server provisioning tool.

Step 8. Configure your Amazon LightSail Server 

Select Amazon Lightsail from the choice of Cloud VPS providers and a configuration panel will open.

Enter an appropriate name for your Lightsail server, and then choose a server plan and region from the dropdown selectors, before choosing whether or not you wish for Lightsail Backups to be enabled. Currently all Instances are provisioned with Ubuntu 18.04 LTS as the default OS.

CHOOSE YOUR DATABASE

If you’re on the developer plan you’ll have the option to choose between Percona and MariaDB for your database.

Percona is based off the new MySQL 8. It has removed query caching (which was deprecated in 5.7 but was still available), and it has more advanced aspects for things like storing and managing json as a storage format. It will likely use more RAM than MariaDB.

MariaDB is still based on MySQL 5.7, which could mean fewer issues importing old WordPress websites from low-quality hosting environments. It will likely use less RAM than Percona.

Both are excellent options.

PROVIDER BACKUPS

We highly recommend that you enable provider backups. It’s a small price to pay for the extra insurance they offer.

CREATE YOUR SERVER

Click the Create Server button when you are happy with your configuration choices.

Step 9. Copy your Server Credentials and keep them safe 

vCanopy will display your Lightsail login details, this is the only time the password will ever be displayed, so be sure not to lose it and keep it secure.

Step 10. Wait patiently while vCanopy provisions your Lightsail 

vCanopy will begin provisioning your instance. You will now be able to see your instance in the Active Servers list.

The process of provisioning your server may take some time depending on the location of your Instance to the vCanopy servers. The process required to set up a highly optimized server stack for hosting Serious WordPress Sites is worth the wait, please be patient.

At any time during the provisioning process you may check what stage the process is at by rolling over the progress bar, a pop up window will display the current job being completed.

Once vCanopy has finished provisioning your Lightsail server the progress bar will turn green and you will be able to deploy some Serious WordPress Sites on it.

Step 11. Deploy your vCanopy WordPress Sites on your Lightsail server

To deploy a site click on the Sites link in the vCanopy main menu to begin the process. We have a separate article that details the steps in detail for you.

Search the Knowledge Base

New to vCanopy?

Get started with our FREE Core plan today! We bring the software, you bring the hardware.