AWS CLI
Amazon's command-line tool for calling AWS services from a terminal or script.
In more detail
Every AWS service has subcommands, such as aws sts for the Security Token Service. It reads credentials from the environment, so it works with temporary credentials from a role.
Examples
aws sts get-caller-identity --query Arn --output textIn AWS: The aws command, which lets you call any AWS service from a terminal or script.aws configure get regionThe course reads three such calls rather than running them, because the machine has the tool but no account behind it.Related terms
- AWS STS — The AWS Security Token Service, which issues temporary credentials when someone assumes a role.
- AWS — Amazon Web Services, the largest public cloud provider, offering rented servers, storage, networking and many managed services.
- AWS Management Console — The AWS website where you can view and change your resources by clicking, instead of typing commands.
- --query — The AWS CLI option that filters a command’s JSON response with a JMESPath expression before printing it.
- aws sts get-caller-identity — The AWS CLI command that prints which account and identity your current credentials belong to.
- region — A separate geographic area where a cloud provider runs data centres, such as eu-west-2 for London in AWS.
- AWS Secrets Manager — An AWS service that stores passwords, keys and other secrets encrypted and hands them to programs that are allowed to read them.
- command-line interface — A program you control by typing commands as text in a terminal instead of clicking in a window.
Taught in
- Keyless Authentication: OIDC to the Cloud — Continuous Integration & Continuous Delivery Pipelines
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture
- Route Tables and Internet Gateways — Cloud Infrastructure & Hyperscaler Architecture
- The Console versus the CLI — Cloud Infrastructure & Hyperscaler Architecture
- Moving To A Secret Manager — Application Security & Threat Modeling for Engineers