!-- Reddit Conversion Pixel -->

AWS Lightsail

The Codenesium application has built in tooling for deployment to AWS Lightsail.

AWS Lightsail is a very low cost VPS services.

We support creating Lightsail instances and also deployment of a Codenesium application to Lightsail.

First you need to open the Lightsail manager

alt text

Next you need to configure your AWS Credentials

alt text

You can create API credentials from AWS Security Credentials

The keyfile in this screen is a file you must download from AWS Lightsail Security Credentials

This keyfile will allow us to SSH into your instance and manage the instance.

From this screen you can create new machines and deploy.

alt text

alt text

When we create a new machine we take several steps.

  1. Create a new Lightsail instance
  2. Create a static IP
  3. Assign the static IP to the instance
  4. Create a disk
  5. Assign the disk to the instance
  6. Open firewall ports on the instance
  7. SSH into the instance and format and attach the disk
  8. SSH into the instance and install and configure Docker

When we deploy we package your source directory and transfer it to the instance where we unzip, build and then bring your app up with Docker.

Now when you regenerate you can auto deploy to your Lightsail instance.

alt text

You can also redeploy without regenerating by right clicking on the Deploy button.

alt text