repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
aws-cli.mdMarkdown80 lines1.7 KiBsource raw download

title: "AWS - CLI" section: "Cloud" sectionSlug: "cloud" sourcePath: "docs/cloud/aws/aws-cli.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/cloud/aws/aws-cli.md" sha: "203bb0c0b290" isIndex: false#

AWS - CLI#

The AWS Command Line Interface (CLI) is a unified tool to manage AWS services from the command line. Using the AWS CLI, you can control multiple AWS services, automate tasks, and manage configurations through profiles.

Set up AWS CLI#

Install AWS CLI and configure it for the first time:

aws configure

This will prompt for:

Creating Profiles#

You can configure multiple profiles in ~/.aws/credentials and ~/.aws/config.

You can also create profiles via the command line:

aws configure --profile dev-profile

Using Profiles#

When running AWS CLI commands, you can specify which profile to use by adding the --profile flag:

aws s3 ls --profile dev-profile

If no profile is specified, the default profile is used.