Create Lightsail instance

In this step, we will create the Lightsail Instance.

  1. From the Lightsail admin interface click Create Instance. Lightsail
  2. Click the Linux/Unix platform. Under Blueprint, click *OS Only, then select Ubuntu Linux 20.04 LTS.

Lightsail

  1. Scroll down, under Identify your instance, name our instance Build-Instance.

Lightsail

  1. Drag the screen down, click Create Instance.

Lightsail

  1. Wait a few minutes for the Lightsail instance to switch to the running state as shown below.
  • Click on the command line icon to connect to Build-Instance.

Lightsail

  1. Install the unzip tool for Ubuntu
sudo apt-get install -y unzip

Lightsail

  1. Install AWS CLI on Build-Instance by running the commands below
sudo curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
sudo unzip awscliv2.zip
sudo ./aws/install

Lightsail

  1. Install the Lightsail control plugin for AWS CLI by running the commands below
sudo curl "https://s3.us-west-2.amazonaws.com/lightsailctl/latest/linux-amd64/lightsailctl" -o "/usr/local/bin/lightsailctl"
sudo chmod +x /usr/local/bin/lightsailctl

Lightsail

  1. Next step we will create awsstudent user with Administrator Access permission, then create accesskey / secret accesskey to configure AWS CLI.

Lightsail

Lightsail