Woj*_*icz 12 python command-line-interface amazon-web-services aws-ec2 osx-elcapitan
Select a default region
1) us-east-1 : US East (N. Virginia)
2) us-west-1 : US West (N. California)
3) us-west-2 : US West (Oregon)
4) eu-west-1 : EU (Ireland)
5) eu-central-1 : EU (Frankfurt)
6) ap-southeast-1 : Asia Pacific (Singapore)
7) ap-southeast-2 : Asia Pacific (Sydney)
8) ap-northeast-1 : Asia Pacific (Tokyo)
9) ap-northeast-2 : Asia Pacific (Seoul)
10) sa-east-1 : South America (Sao Paulo)
11) cn-north-1 : China (Beijing)
(default is 3):5
当我选择一个数字或只是留空时出现以下错误:
错误:AttributeError ::'NoneType'对象没有属性'get_frozen_credentials'
在运行eb init之后--debug:
回溯(最近调用最后一次):文件"/ usr/local/bin/eb",第11行,在sys.exit(main())文件"/Library/Python/2.7/site-packages/ebcli/core/ebcore .py",第149行,在主app.run()文件"/Library/Python/2.7/site-packages/cement/core/foundation.py",第694行,运行self.controller._dispatch()文件" /Library/Python/2.7/site-packages/cement/core/controller.py",线路455,在_Dispatch回报FUNC()文件 "/Library/Python/2.7/site-packages/cement/core/controller.py" (线461,在_Dispatch回报FUNC)文件 "/Library/Python/2.7/site-packages/ebcli/core/abstractcontroller.py" 57行,在默认情况下self.do_command()文件"/Library/Python/2.7 /site-packages/ebcli/controllers/initialize.py",第67行,在do_command self.set_up_credentials()文件 "/Library/Python/2.7/site-packages/ebcli/controllers/initialize.py",线152,在set_up_credentials如果不是initializeops.credentials_are_valid():文件 "/Library/Python/2.7/site-packages/ebcli/operations/initializeops.py",第24行,在credentials_are_vali d elasticbeanstalk.get_available_solution_stacks()文件"/Library/Python/2.7/site-packages/ebcli/lib/elasticbeanstalk.py",第239行,在get_available_solution_stacks中结果= _make_api_call('list_available_solution_stacks')文件"/Library/Python/2.7/ site-packages/ebcli/lib/elasticbeanstalk.py",第37行,在_make_api_call**operation_options中)文件"/Library/Python/2.7/site-packages/ebcli/lib/aws.py",第207行,在make_api_call response_data中= operation(**operation_options)文件"/Library/Python/2.7/site-packages/botocore/client.py",第310行,在_api_call中返回self._make_api_call(operation_name,kwargs)文件"/Library/Python/2.7/ site-packages/botocore/client.py",第396行,在_make_api_call operation_model,request_dict中)文件"/Library/Python/2.7/site-packages/botocore/endpoint.py",第111行,在make_request中返回self._send_request( request_dict,operation_model)文件"/Library/Python/2.7/site-packages/botocore/endpoint.py",第136行,在_send_request request = self.create_request(re quest_dict,operation_model)文件"/Library/Python/2.7/site-packages/botocore/endpoint.py",第120行,在create_request operation_name = operation_model.name)文件"/Library/Python/2.7/site-packages/botocore/ hooks.py",线路226,在发射回self._emit(EVENT_NAME,kwargs)文件 "/Library/Python/2.7/site-packages/botocore/hooks.py",线209,在响应_emit =处理程序(**kwargs)文件 "/Library/Python/2.7/site-packages/botocore/signers.py",线90,在处理程序返回self.sign(OPERATION_NAME,请求)文件"/Library/Python/2.7/site-packages/botocore /signers.py",第123行,签名signature_version)文件"/Library/Python/2.7/site-packages/botocore/signers.py",第153行,in get_auth_instance kwargs ['credentials'] = self._credentials.get_frozen_credentials ()AttributeError:'NoneType'对象没有属性'get_frozen_credentials'
sad*_*k-f 18
您收到此错误是因为您没有初始化您的错误AWS Access Key ID,AWS Secret Access Key
您应该通过运行安装第一个awscli pip install awscli.
在需要配置aws后: 
aws configure
在此之后你可以运行 eb init
| 归档时间: | 
 | 
| 查看次数: | 4978 次 | 
| 最近记录: |