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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章