AWS CLI

Table of Content

The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

Wikipedia


Installation

$ guix package -i awscli

Configure

General

You may optionally configure some defaults:

$ aws configure
AWS Access Key ID [None]: 
AWS Secret Access Key [None]: 
Default region name [None]: eu-central-1
Default output format [None]: json

The result will be stored at ~/.aws.

Credentials

Optionally, you may store some credentials for easier access at ~/.aws/credentials:

[default]
aws_access_key_id=AKDAIOSFAQNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFHDI/K7MDENG/bPxRfiUYEXAMPLEKEY

[someunixsite.com]
aws_access_key_id=OPDAIOSFAQNN7EXAMPEA
aws_secret_access_key=wkalrXUtnFHDI/K7MDENG/bPxRfiUYEXAMPLEKIO

Usage

For most CLI command you can simply append the profile name:

aws ... -profile someunixsite.com

Or set it via ENV:

AWS_PROFILE=someunixsite.com

PantherX & (unofficial) GNU Guix Wiki.

Last update: 2024-04-21 10:28:03 +0000 | Apache-2.0

Inspired by the excellent Arch Linux Wiki