Ad space (banner)
AD

Got the fundamentals? A structured AWS course is a fast way to level up.

Find AWS courses on Udemy

Affiliate link. Costs you nothing extra.

☁️AWS Lessons
Lesson 4 / 41

Setting Credentials with aws configure

Before the CLI can do anything, it needs to know who you are. aws configure stores your access key, secret key and default region.

The syntax is aws configure. It prompts for four values in turn and saves them under ~/.aws/.

Running aws configure asks for your Access Key ID, Secret Access Key, default region and output format — after which every later command uses them automatically.

A common stumble is committing credentials to a Git repository. Access keys are as sensitive as passwords; leaked keys have led to enormous fraudulent bills.

In real work, this is the very first step on any new machine, and named profiles let you switch between multiple accounts.

AWS
Try it (type this into the pseudo terminal)
aws configure

🧑‍💻 You can type this command into the AWS pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)