← Lessons/Your First AWS Calls
← Your First AWS Calls

Say what just happened

Learn

The mental model

You've now made two real API calls. Before moving on to storage, networking and messaging, think through what happens between pressing Run and seeing JSON: what the CLI sends, what it signs the request with, and who answers.

This step isn't a command: answer the questions below.

You ran two commands and got JSON back both times. Answer the questions below: this is the mental model the rest of the cloud builds on.

What does the AWS CLI actually do when you run a command?
What does the CLI sign each request with?
Sign in to check your answers

Interview prep

Every cloud screen starts by confirming you can actually reach the account.

What does aws sts get-caller-identity tell you, and when would you reach for it?

It returns the account id, user id, and ARN of whoever the current credentials belong to — the cloud equivalent of whoami. It's the first thing to run when a command is mysteriously denied or hitting the wrong account: it confirms which identity and account you're actually authenticated as.

$ bash solution.sh
Loading...

Output

Run your solution to see its output here.