AWS · Management and Governance

AWS CLI

The AWS Command Line Interface: one tool to control AWS services from a terminal and automate them with scripts.

On the SAA-C03 exam listAutomation

What it is and what problem it solves

The AWS CLI lets you call AWS service APIs from a terminal: aws s3 ls, aws ec2 describe-instances and so on. Version 2 is the current major version. It uses profiles for credentials and Regions, signs in with IAM Identity Center (aws sso login) for short-lived credentials, supports output as JSON, tables or text, and filters results with --query. AWS CloudShell gives a browser-based shell with the CLI already set up.

When to use it

  • Scripting and automating AWS tasks.
  • Quick inspection and administration from a terminal.
  • CI/CD pipelines that call AWS.

When to avoid it

  • Managing infrastructure state long term: CloudFormation, CDK or Terraform.
  • Long-lived access keys on laptops: sign in with IAM Identity Center instead.

Cost model

What you pay for

The CLI is free; you pay for the AWS resources and API calls it makes.

Where it is cost-efficient

Automation of repetitive tasks.

Where costs grow

Not applicable.

Cost controls and common surprises

None needed.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Request signing, support for temporary credentials and SSO, MFA for role assumption.

What you configure

Use IAM Identity Center or role-based temporary credentials instead of stored access keys, and never commit credentials.

Logging and monitoring

Every CLI call appears in CloudTrail.

Related security services

IAM Identity Center, IAM, CloudShell.

Shared responsibility

AWS secures the API endpoints. You protect your credentials.

Common service combinations

IAM Identity Center profiles, CloudShell, scripts in CI/CD.

Business application examples

  • A nightly script lists untagged resources with --query and reports them.

Exam cues and common confusions

  • Programmatic access from a terminal: the CLI with credentials from IAM Identity Center or a role, not root keys.
  • Shell in the browser with the CLI ready: CloudShell.

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake