- Effective DevOps with AWS
- Yogesh Raheja Giuseppe Borgese Nathaniel Felsen
- 187字
- 2021-07-23 16:27:27
Configuring the AWS CLI
To do this, you will need to extract the AWS access key ID and secret access key from the file downloaded in step 4 of the Creating a new user in IAM section:
$ more credentials.csv
User Name,Access Key Id,Secret Access Key "yogeshraheja", AKIAII55DTLEV3X4ETAQ, mL2dEC8/ryuZ7fu6UI6kOm7PTlfROCZpai07Gy6T
We will run the following command to configure our AWS account:
$ aws configure
AWS Access Key ID [None]: AKIAII55DTLEV3X4ETAQ
AWS Secret Access Key [None]: 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
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": "yogeshraheja",
"PasswordLastUsed": "2018-08-07T09:57:53Z",
"CreateDate": "2018-08-07T04:56:03Z",
"UserId": "AIDAIN22VCQLK43UVWLMK",
"Path": "/",
"Arn": "arn:aws:iam::094507990803:user/yogeshraheja"
}
]
}
AWS aws-shell
Amazon has a second CLI tool called aws-shell. This tool is more interactive than the classic awscli command, as 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. This tool is more interactive than the classic awscli command, as 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).
推薦閱讀
- 大數據時代的數據挖掘
- ROS機器人編程與SLAM算法解析指南
- 機艙監測與主機遙控
- Photoshop CS3圖像處理融會貫通
- 21天學通Java Web開發
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- JRuby語言實戰技術
- Microsoft Dynamics CRM 2013 Marketing Automation
- 手把手教你學Photoshop CS3
- 新一代人工智能與語音識別
- Practical Network Automation
- Flash CS3動畫制作
- EDA技術及其創新實踐(Verilog HDL版)
- TensorFlow 2.0卷積神經網絡實戰
- 深度學習500問:AI工程師面試寶典