Python for System Administrators - Install & configure 'boto3'

Опубликовано: 04 Октябрь 2024
на канале: technotes of Hemant
127
3

Download awscli : https://docs.aws.amazon.com/cli/lates...
=============================*************************==============================
Install boto3
=============================*************************==============================
To install Boto3 on Red Hat Linux, you can follow these steps:

1. First, make sure that you have Python installed on your system. You can check this by running the following command:
python --version

2. If Python is not installed, you can install it using your system's package manager. For example, on Red Hat Linux, you can use the following command:
sudo yum install python

3. Next, you need to install pip, which is the package manager for Python. You can do this by running the following command:
sudo yum install python-pip

4. Once pip is installed, you can use it to install Boto3. Run the following command: [on Windows/Linux]
pip install boto3

=============================*************************==============================
Install awscli on Linux
=============================*************************==============================
1. Download the zip file using curl command
curl "https://awscli.amazonaws.com/awscli-e..." -o "awscliv2.zip“
2. Unzip the installer file
unzip awscliv2.zip
3. Run the install program.
sudo ./aws/install
4. Validate the installed program
aws –-version

=============================*************************==============================
Install awscli on Windows
=============================*************************==============================

1. Open CMD prompt and download and execute the provided MSI
msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2...
2. Validate the installed program
aws –-version