Create Lightsail instance
In this step, we will create the Lightsail Instance.
- From the Lightsail admin interface click Create Instance.

- Click the Linux/Unix platform. Under Blueprint, click *OS Only, then select Ubuntu Linux 20.04 LTS.

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

- Drag the screen down, click Create Instance.

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

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

- 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

- 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

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

