阅读背景:

AWS之快速配置

来源:互联网 

AWS已在中国落地!详情请猛击此处


本文以boto(python sdk for AWS)和cli(AWS command line)为例,简单介绍aws开发的配置。


假设你已经注册好aws帐户,并创建好了aws access key和aws secret access key

1.Boto:

Install boto:

pip install boto

Write following content into /etc/boto.cfg for system-wide use or in the home directory of the user executing the commands as ~/.boto

[Credentials]aws_access_key_id = {ACCESS KEY ID}aws_secret_access_key = {SECRET ACCESS KEY}


2.cli

Install cli:

pip install awscli

Type the following command to quick start configuration:

$ aws configure

Type the following according to the prompts:

AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLEAWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYDefault region name [None]: us-west-2Default output format [None]: json


本文出自 “maxwell” 博客,请务必保留此出处https://drmaxwell.blog.51cto.com/394635/1347533


分享到: