Set up the AWS CLI for Lightsail operations
The AWS Command Line Interface (AWS CLI) is a tool that allows advanced users and developers to control the Amazon Lightsail service by typing commands in the terminal (on Linux and Unix) or Command Prompt (on Windows). You can also control Lightsail using the Lightsail console, a graphical user interface, and the Lightsail application program interface (API).
In Lightsail, you can install the AWS CLI on your local desktop or install it on your Lightsail instance.
For more information about the AWS CLI, see AWS Command Line Interface User Guide. You can find the Amazon Lightsail commands in the AWS CLI Command Reference.
-
To install the AWS CLI on your local desktop, see Installing the AWS CLI in the AWS Command Line Interface documentation.
-
To install the AWS CLI on your Ubuntu-based Lightsail instance, connect to your instance, and type
sudo apt-get -y install awscli
.
Note
The AWS CLI should already be installed on the Amazon Linux Lightsail instance. If you
need to reinstall it, connect to your instance, and type sudo yum install
aws-cli
.
After you install the AWS CLI, you need to obtain access keys and then configure the AWS CLI to use them. For more information, see Create an access key to use the Lightsail API or the AWS Command Line Interface.