服务 · 开发工具
AWS Command Line Interface (AWS CLI)
A command-line tool for controlling AWS services by typing commands or running scripts.
本课尚未翻译,暂以英文显示。
- 1You type a command, or run a script that holds many commands.
- 2The CLI signs the request with your credentials and sends it to the AWS API.
- 3IAM checks the permission, and Amazon S3 does the work, for example listing your buckets.
分步说明
- 1You type a command, or run a script that holds many commands.
- 2The CLI signs the request with your credentials and sends it to the AWS API.
- 3IAM checks the permission, and Amazon S3 does the work, for example listing your buckets.
A CLI command on its way to Amazon S3.
是什么
The AWS Command Line Interface (AWS CLI) is a free, open-source tool that you install on your computer. It runs in a terminal on Windows, macOS or Linux. You type a command, for example one that lists your Amazon S3 buckets, and the CLI sends the matching request to the AWS API.
Most things you can do in the console, you can also do with a CLI command. The difference is speed and automation. Commands can be saved in a script and run again and again, on a schedule or for many resources at once, with the same result each time.
是什么
The CLI needs credentials to sign its requests. AWS recommends short-term credentials, for example from AWS IAM Identity Center, rather than long-term access keys.
要记住
- Typed commands instead of clicks.
- Commands can be saved in scripts, so routine work runs the same way every time.
- Runs on Windows, macOS and Linux.
- Signs requests with access keys. Short-term credentials are safer than long-term keys.
要记住
- Each command is an API call: IAM checks it and CloudTrail records it.
考试中
- “Manage AWS from a terminal” or “automate tasks with scripts” points to the AWS CLI.
- “Programmatic access” from a terminal or a script is the AWS CLI. From inside application code, it is an AWS SDK.