The AWS CLI allows you to interact with AWS services from the command line.
-
Download the AWS CLI installer:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
-
Install unzip if not already installed:
sudo apt install -y unzip
-
Unzip the installer:
unzip awscliv2.zip
-
Run the installer:
sudo ./aws/install
-
Verify the installation:
aws --version
-
Configure AWS CLI:
aws configure
Enter the following details:
-
AWS Access Key ID
-
AWS Secret Access Key
-
Default region
-
Default output format (e.g., JSON)
-
-
Log in to the AWS Management Console:
- Go to AWS Console.
-
Navigate to the IAM Dashboard:
- Click on Services and search for IAM (Identity and Access Management).
-
Create a New IAM User:
-
Select Users from the left menu and click Add Users.
-
Provide a username and select Programmatic Access as the access type.
-
-
Assign Permissions:
- Choose an existing policy (e.g.,
AdministratorAccess) or create a custom policy.
- Choose an existing policy (e.g.,
-
Review and Create:
- Review the settings and click Create User.
-
Download the Credentials:
- Save the Access Key ID and Secret Access Key securely, and copy them to paste during the
aws configuresetup process.
- Save the Access Key ID and Secret Access Key securely, and copy them to paste during the