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]: AKIAIOSFODNN7EXAMPLE AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Default region name [None]: us-west-2 Default output format [None]: json