- Effective DevOps with AWS
- Nathaniel Felsen
- 184字
- 2021-07-15 17:11:50
Configuring the AWS CLI
To do this, you will need to extract the Access Key and Secret Access Key from the file downloaded in Step 4 of the section creating a new user in IAM:
$ more credentials.csv User Name,Access Key Id,Secret Access Key "Nat",AKIACZ6HA,f6hoyLgExmoq/V4VQjf3nB
We will run the following command to configure our AWS account, as follows:
$ aws configure AWS Access Key ID [None]: AKIACZ6HA AWS Secret Access Key [None]: f6hoyLgExmoq/V4VQjf3nB Default region name [None]: us-east-1 Default output format [None]:
At this point, we are ready to start using the CLI. We can quickly verify that everything is working by listing the user accounts, as follows:
$ aws iam list-users { "Users": [ { "UserName": "Nat", "PasswordLastUsed": "2017-07-30T03:11:30Z", "CreateDate": "2017-07-28T09:23:50Z", "UserId": "AKIACZ6HA", "Path": "/", "Arn": "arn:aws:iam::511912822959:user/Nat" } ]
}
AWS aws-shell
Amazon has a second CLI tool called aws-shell. The tool is more interactive than the classic awscli command. It offers out-of-the-box auto-completion and a split-screen view that lets you access the documentation as you type your commands. If you are a new AWS user, give it a shot (pip install aws-shell).
Amazon has a second CLI tool called aws-shell. The tool is more interactive than the classic awscli command. It offers out-of-the-box auto-completion and a split-screen view that lets you access the documentation as you type your commands. If you are a new AWS user, give it a shot (pip install aws-shell).
推薦閱讀
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- Learning ROS for Robotics Programming(Second Edition)
- Delphi程序設計基礎:教程、實驗、習題
- Java完全自學教程
- Practical Game Design
- GeoServer Beginner's Guide(Second Edition)
- Kinect for Windows SDK Programming Guide
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- Visual C#.NET程序設計
- Visual Basic程序設計教程
- Essential C++(中文版)
- CRYENGINE Game Development Blueprints
- Getting Started with hapi.js
- Getting Started with Windows Server Security
- 虛擬現實:引領未來的人機交互革命