Deploying an Application To Amazon Lightsail
Last updated: January 22, 2024
Table of Contents
Tech Stack
- Amazon Lightsail
- Static Blog
- NGINX Server
-
rsync
-
Create An Instance via Amazon Lightsail
Select the platform that you'd like to work with and base operating system.
I went with Linux and decided on NGINX as my development stack.
-
Choose the instance size you need
-
Name & Create Your Instance
At this point, you should have an instance setup and ready to be configured. The next step in this process is to
- Connect to your instance via SSH (Local or AWS Console)
-
Get your default password for the application
cat bitnami_application_password
-
Move the static blog build folder to the NGINX server (via command line) There are a few options to do this, but I used rsync
rsync -avc --delete -e "ssh -i ~/.ssh/LightsailDefaultKey-us-east-2-again.pem" /Users/aaroncarpenter/Desktop/Programming/Projects/2024/professionalBlog/aaronkcarpenter.com/output/ bitnami@18.219.211.212:/opt/bitnami/nginx/html
rsync -avc --delete -e "ssh -i ~/.ssh/LightsailDefaultKey-us-east-2-again.pem" /Users/aaroncarpenter/Desktop/Programming/Projects/2024/professionalBlog/aaronkcarpenter.com/output/ bitnami@18.219.211.212:/opt/bitnami/nginx/html