官术网_书友最值得收藏!

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).
主站蜘蛛池模板: 缙云县| 扎赉特旗| 宜城市| 盱眙县| 饶阳县| 保山市| 建宁县| 天津市| 红桥区| 嵊州市| 宝鸡市| 灵璧县| 施秉县| 景东| 光泽县| 广宁县| 新平| 手机| 札达县| 河间市| 盐山县| 大石桥市| 钟祥市| 蓬莱市| 乐昌市| 湛江市| 新余市| 徐州市| 永州市| 田林县| 东乡县| 丰城市| 锡林浩特市| 蒙城县| 双辽市| 嘉荫县| 穆棱市| 库车县| 平顶山市| 榆树市| 揭西县|