阿斯顿阿斯顿 发表于 2019-2-22 09:50:31

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


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




页: [1]
查看完整版本: AWS之快速配置