Users should follow this guide if they wish to install AWS-CLI on Raspberry Pi.
Install AWS-CLI on Raspberry Pi
There are two methods to install AWS-CLI on Raspberry Pi, which are as follows:
Method 1: Through Apt Command
To install AWS-CLI through official Raspberry Pi repository, follow the below-given steps:
Step 1: Ensure that packages installed on the system are updated and this can do through following command:
Step 2: Once the packages are installed, the AWS-CLI can be installed with the apt package manager through the following command:
Step 3: Verify the AWS-CLI version with below-mentioned command once the installation is completed:
At this stage, you have successfully installed AWS-CLI on the Raspberry Pi system and you can start configuring it.
Method 2: Through Pip
You can also install AWS-CLI through pip command given below:
How to Configure AWS-CLI from Raspberry Pi
Before using AWS-CLI, you must register an account here. You will get the Access Key ID, Secret Access Key, and AWS Region Name after your account has been setup. While setting AWS-CLI on a Raspberry Pi, this information will be needed. Use “json” as the preferred output format since it is simpler to understand than plain text.
Execute this command on your Raspberry Pi after you have the above information.
Write down the required information to complete the ASW-CLI configuration.
How to Test the Connections with AWS-CLI
Try to run any AWS list command to check the CLI connection. You may use the “aws iot list-things” command to get a list of all your IoT devices.
If you’ve set up any IoT Things on Amazon, you should see the list; otherwise, a blank json things list will appear if you haven’t created any IoT Things on AWS.
Execute the command that follows on a Raspberry Pi to create a new IoT thing:
How to Remove AWS-CLI from Raspberry Pi
Use the following command to remove AWS-CLI from Raspberry Pi in case you don’t need it on your system.
Conclusion
The AWS-CLI on Raspberry Pi is a powerful tool for accessing and managing AWS services. The setup process is relatively simple, and the features are incredibly useful for automation and other tasks. You can install AWS-CLI either through the Raspberry Pi repository or through pip. After the installation, you can configure AWS on the terminal using the Access keys that must require registering an account on AWS.