AWS CH. 1: Interacting with AWS

Before you can build anything, you need to know how to talk to AWS. There are 3 main ways to do this :

1.AWS Management Console (The Website)

  • What it is: The visual, point-and-click web interface.
  • Analogy: Like using an ATM screen with buttons and menus.
  • Best for: Beginners, testing a new service for the first time, or viewing visual dashboards.

2.AWS CLI (Command Line Interface)

  • What it is: A text-based tool you run in your computer’s terminal (Windows, Mac, Linux).
  • Analogy: Like talking directly to the bank teller using specific banking codes.
  • Best for: Automating repetitive tasks (e.g., writing a script to spin up 50 servers at once).

3.AWS SDK (Software Development Kit)

  • What it is: Code libraries for languages like Python, Node.js, Java, etc.
  • Analogy: Integrating the bank’s API directly into your own custom smartphone app.
  • Best for: Building applications that interact with AWS automatically behind the scenes.

Security Note (Access Keys):

To use the CLI or SDK, you must generate an Access Key ID (your username) and a Secret Access Key (your password). Never share these or hardcode them into public GitHub repositories!

AWS CloudShell

A free, browser-based terminal that already has the CLI installed and authenticated. Great for quick commands without installing anything on your laptop.

Scenario Spotlight

  • Need to automatically create a user in AWS Cognito when they sign up on your website? ➔ AWS SDK (integrated into your Node.js app code).
  • Need to quickly test a single database in RDS? ➔ AWS Console (no need to write a script for a one-off test).
  • Need to automate daily report generation? ➔ AWS CLI (write a script and schedule it).