BlogAWS DeploymentHow to Deploy Frontend Applications on AWS

How to Deploy Frontend Applications on AWS

EC2 Instance

Deploying your front-end application on AWS

  1. Create an aws account : 
  • Sign up at aws.amazon.com.
  • Complete the basic setup for your account, including billing info.
  1. Checking the Status of an EC2 Instance : 
  • Navigate to the Amazon Management Console.
  • Look under Services for EC2.
  • You will now see a screen showing you the current state of the ec2-instance, including whether it is running or not. 
  • Navigate to the EC2 Dashboard using the instance link and review the detailed status of the instance to monitor its health and performance metrics.
  1. Create a new ec2-instance : 
  • In the EC2 Dashboard, click on the Launch Instance button. This will take you to the configuration page for creating a new instance.

  • Select an Amazon Machine Image (AMI) from the available list.
  • For beginners, the Amazon Linux 2 or Ubuntu Server AMIs are popular choices.

  • Make sure to choose an AMI marked as Free Tier Eligible if you want to stay within the free usage limits.
  • Depending on your needs, choose an instance type. The t2.micro instance, which is free tier qualified, is a nice place to start for most uses.
  • Give the instance’s storage volume some details.
  • General Purpose SSD (gp2) storage is assigned with 8GB by default, which is usually enough for modest projects.
  • You’ll need a Key Pair (a public-private key) in order to connect to your instance securely.
  • Choose Create a new key pair, give it a name, and download the private key file (.pem) to your local computer if you don’t already have one.
  • This.pem file needs to be kept safe because it will be used to log into your instance using SSH.
  • Click Launch Instances.

Part 1: Using a Terminal to Connect to Your EC2 Instance

Step 2 : Go to the directory for your key pair.

  • Host: The public IP address of your EC2 instance (e.g., 203.0.113.25).
  • Protocol: Choose the SSH File Transfer Protocol, or SFTP.
  • Type of Logon: Choose a Key file.
  • User: Type either ubuntu (for Ubuntu) or ec2-user (for Amazon Linux).
  • Key file: Use the file browser to choose your.pem key.
  • ​​Go to the directory (build folder, for example) that holds your frontend build files on the left pane (local site).
  • Drag the build files to the right pane to upload them to your EC2 instance after selecting them (you may use Ctrl or Shift to pick multiple files).

Software Developer



Creating digital solutions for your business

Subscribe

Subscribe to stay updated with our latest Tech News & Blogs

Copyright Synclovis System Pvt. Ltd. © 2024. All Rights Reserved
  • About Us
  • Services
  • Industries
  • Technologies
  • Portfolio
  • Blog