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

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).
主站蜘蛛池模板: 峨山| 景泰县| 郎溪县| 江口县| 泸州市| 舒城县| 扎赉特旗| 伽师县| 东安县| 华阴市| 怀远县| 绥阳县| 离岛区| 达尔| 英德市| 万全县| 安达市| 金寨县| 广平县| 江永县| 铁岭市| 大竹县| 青海省| 龙口市| 竹山县| 龙游县| 长寿区| 仙游县| 那坡县| 中方县| 汉源县| 扎囊县| 霍州市| 通山县| 佛冈县| 阿克陶县| 桦南县| 花垣县| 江源县| 庆云县| 巍山|