AWS in 1 Min · Episode 14

Console, CLI and SDKs

Three ways to talk to AWS. Watch the one-minute video, then read the details.

David Gomez1:19 video · 2 min read

"You manage AWS by clicking around the website." You can, and everyone starts there. But clicks don't scale. Nobody can repeat exactly what you clicked last month, review it or roll it back. There are three ways to talk to AWS, and knowing when to use each one is a big step from hobby setup to professional operations.

Everything is an API call

Underneath, all three do the same thing: they call the AWS API. Launching an EC2 instance, creating an S3 bucket and changing an IAM permission are each an API request. That request is signed with your credentials and checked against your permissions. The console, the CLI and the SDKs are just different front ends to it.

1. The AWS Management Console

The console is the website.

  • Great for: learning a service, exploring what exists, reading dashboards and one-off investigations.
  • Weak at: repeatability. Every click is manual, easy to get slightly wrong, and leaves no reusable record of how something was built.

2. The AWS CLI

The AWS Command Line Interface lets you run AWS actions from a terminal:

aws s3 ls
aws ec2 describe-instances

One command can replace many clicks. More importantly, you can save it in a script, put it in version control and run it again tomorrow, in the same way. AWS CloudShell gives you a browser terminal with the CLI already installed and signed in as you.

3. The AWS SDKs

The SDKs let your own code call AWS in languages like Python (boto3), JavaScript, Java, Go and .NET. That's how an application uploads a file to S3, sends a message to a queue or reads a secret.

For building infrastructure itself, most teams go one step further, to infrastructure as code: CloudFormation, the CDK or Terraform. Those describe the whole environment in files and use the same APIs underneath.

The same permissions, and a common mistake

All three follow the same IAM permissions. The console uses your sign-in session. The CLI and SDKs need credentials. The classic mistake is creating long-lived access keys and pasting them into code or config files, where they end up in a repository.

Prefer temporary credentials instead: IAM Identity Center for people, and IAM roles for code running on AWS (EC2 instance profiles, Lambda execution roles and so on). The SDKs pick up those role credentials automatically.

Where AI fits

AI assistants now write the commands for you. You describe what you want in plain English, such as "list my running instances in us-east-1", and an AI assistant suggests the CLI command or the SDK code. The AWS assistant in the console (formerly Amazon Q Developer in the console) can also answer questions about your AWS resources.

That's a real speed-up, especially for flags you rarely use. But read every command before you run it. An assistant can confidently suggest a command against the wrong account or Region, or a delete you didn't mean.

Quick recap

  • Console: to explore and learn.
  • CLI: to automate and repeat.
  • SDKs: to call AWS from inside your code, with roles instead of stored keys.
AWS in 1 Min #14 · 1:19

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS