IMPORTANT: Amazon Lightsail only supports a limited number of static IP addresses by default.
This means that if you create more than 5 servers at a time, 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 GridPane, 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.
The limitations aren't exactly clear, but please keep this if you're creating multiple Lightsail servers at the same time. You can learn more directly from AWS here:
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 Gridpane 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-Gridpane-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-Gridpane-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 GridPane Settings
Login to your GridPane 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 Amazon Lightsail API 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 and 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 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 GridPane Home to provision an Instance
Now we have our Amazon Lightsail Key and Secret saved in our GridPane settings we are able to provision Instances with it from within GridPane. To do this, first click Home from the GridPane 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 16.04 LTS as the default OS.
Click the Create Server button when you are happy with your configuration choices.
Step 9. Copy your Server Credentials and keep them safe
GridPane 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 GridPane provisions your Lightsail
GridPane 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 GridPane 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 GridPane 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 GridPane WordPress Sites on your Lightsail server
To deploy a site click on the Sites link in the GridPane main menu to begin the process. We have a separate article that details the steps in detail for you to enjoy.