Deploying an Application To Amazon Lightsail

 · 1 min read
 · Aaron Kyle
Last updated: January 22, 2024
Table of Contents

Get My Content Delivered To Your Inbox

    No Spam, Pinky Promise.

    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.

    1. Choose the instance size you need

    2. 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

    1. Connect to your instance via SSH (Local or AWS Console)
    2. Get your default password for the application cat bitnami_application_password

    3. 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
    

    Get My Content Delivered To Your Inbox

      No Spam, Pinky Promise.