AWS CLI
As NOS-T operator, it may be necessary to use Amazon Web Services (AWS) resources. To facilitate that this documentation will walk you through the process of setting up the AWS command line interface (CLI).
Note
Once you have installed and configured the AWS CLI, you can use it to interact with AWS services directly from the command line. Additionally, you can use the Python SDK, boto3, to programmatically interact with AWS services. Note that boto3 requires the AWS CLI to be installed and properly configured to function correctly.
Installation
Installation instructions are provided below. For further information on AWS CLI installation, click here.
Linux
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
Windows
Download and run the AWSL CLI installer:
msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi
Confirm successful installation
aws --version
Mac
Download AWS CLI installer:
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
Run the installer:
sudo installer -pkg ./AWSCLIV2.pkg -target /
Confirm successful installation:
aws --version
Configuration
Once installed, the AWS CLI must be configured:
aws configure
You will be prompted for the following information:
AWS Access Key ID
AWS Secret Access Key
Default region name
Default output format
Note
Enter the Access Key ID and Secret Access Key provided by the NOS-T operator. The default region name and output format can be left blank.
These credentials will be stored in the ~/.aws/credentials file.