Step-by-Step Guide to Setting Up a Magento Store on Amazon Lightsail

Starting an eCommerce business can be an exciting venture, and choosing the right platform and hosting service is crucial to your success. Magento is a powerful and flexible eCommerce platform, and Amazon Lightsail offers an affordable and user-friendly hosting solution. In this step-by-step guide, we’ll walk you through setting up a Magento store on Amazon Lightsail.

Why Use Amazon Lightsail for Magento?

Amazon Lightsail is a great choice for hosting your Magento store for several reasons:

  • Cost-Effective: Affordable, predictable pricing plans.
  • Simplicity: Easy to set up and manage instances.
  • Scalability: Easily scale your infrastructure as your business grows.
  • AWS Integration: Access to the broader suite of AWS services.


Before you begin, ensure you have:

  • An AWS account.
  • Basic knowledge of SSH and the command line.
  • A domain name (optional but recommended).

Step 1: Create a Lightsail Instance

  1. Log In to AWS Lightsail:
  2. Create an Instance:
    • Click “Create instance”.
    • Choose your instance location (preferably close to your target audience).
    • Under “Select a blueprint”, choose “Magento”.
  3. Choose an Instance Plan:
    • Select a plan that fits your needs and budget. The $5/month plan is a good starting point for small stores.
  4. Name Your Instance:
    • Give your instance a recognizable name.
  5. Create the Instance:
    • Click “Create instance” to launch your server.

Step 2: Connect to Your Instance

  1. Access Your Instance:
    • Once your instance is running, click on its name to open the management page.
    • Click “Connect using SSH” to open an SSH session in your browser.
  2. Retrieve Your Password:
    • The Magento admin password is stored in a file. To retrieve it, run the following command:
Copy to Clipboard
    • Note down the password for later use.

Step 3: Configure DNS for Your Domain

  1. Navigate to the Networking Tab:
    • In your instance management page, go to the “Networking” tab.
  2. Create a Static IP:
    • Click “Create static IP”.
    • Attach the static IP to your Magento instance.
  3. Configure Your Domain:
    • Update your domain’s DNS settings to point to the static IP address.
    • This can typically be done through your domain registrar’s control panel.

Step 4: Access the Magento Web Installer

  1. Open Your Browser:
    • Navigate to your instance’s static

IP address or your domain name.

  1. Complete the Magento Setup:
    • Follow the on-screen instructions to complete the Magento installation.
    • Use the admin password you retrieved earlier.
  2. Database Configuration:
    • During the setup, you’ll be asked to configure your database. Use the default settings provided by the Bitnami Magento stack, or configure your own if you have specific requirements.
  3. Web Configuration:
    • Enter your store’s URL (your domain or static IP address).
    • Configure other settings as per your store’s needs, such as language, currency, and timezone.
  4. Admin Account Setup:
    • Create an admin account by entering your email, username, and a secure password.
    • Complete the setup process and log in to your new Magento store’s admin panel.

Step 5: Secure Your Magento Store

  1. Install an SSL Certificate:
    • For security, it’s crucial to use HTTPS. You can use Let’s Encrypt for free SSL certificates.
    • Connect to your instance via SSH and install Certbot (the recommended Let’s Encrypt client).
Copy to Clipboard

2. Obtain and Install the SSL Certificate:

  • Run Certbot to obtain and install your SSL certificate:
Copy to Clipboard
  1. Follow Prompts:
    • Certbot will guide you through the installation process. Ensure you select the option to redirect HTTP to HTTPS.

Step 6: Final Configuration and Customization

  1. Configure Magento Settings:
    • Log in to your Magento admin panel.
    • Navigate to Stores > Configuration and configure your store settings such as currency, shipping methods, and payment gateways.
  2. Install Themes and Extensions:
    • Customize the appearance of your store by installing Magento themes.
    • Enhance functionality by installing necessary extensions from the Magento Marketplace.
  3. Add Products:
    • Go to Catalog > Products and start adding your products, including images, descriptions, prices, and other relevant details.
  4. Test Your Store:
    • Thoroughly test your store to ensure everything is working correctly, including the checkout process, payment gateways, and other functionalities.


Setting up a Magento store on Amazon Lightsail is a cost-effective and efficient way to launch your eCommerce business. By following this step-by-step guide, you should have a fully functional Magento store ready to customize and populate with your products.

Remember to regularly back up your data, keep your Magento installation and extensions updated, and monitor your site’s performance to ensure a smooth and secure shopping experience for your customers.

Happy selling!