Gre*_*dot 6 python django amazon-ec2 amazon-web-services amazon-elastic-beanstalk
我正在尝试首次将Django应用程序部署到Elastic Beanstalk.我一直在这里和这里寻求帮助的两个教程,但我遇到了教程似乎没有涉及的问题.
到目前为止,我遵循的步骤是将awsebcli安装到Python3.4虚拟环境中并cd到我的项目目录.然后我打电话eb init
.然后提示我输入我的访问密钥.我已将它们保存到文本文件中,因此我只需将我的密钥(确保没有尾随空格)复制并粘贴到终端中.
问题是错误被抛回:
错误:操作被拒绝.我们计算的请求签名与您提供的签名不匹配.检查您的AWS Secret Access Key和签名方法.有关详细信息,请参阅服务文档
奇怪的是,在我输入部署的区域编号后,在后续尝试中会弹出错误.但它仍然提示我输入键:
错误:当前用户没有正确的权限.原因:操作被拒绝.我们计算的请求签名与您提供的签名不匹配.检查您的AWS Secret Access Key和签名方法.有关详细信息,请参阅服务文档
以下是完整输出eb init --debug
:
e$ eb init -- debug
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-south-1 : Asia Pacific (Mumbai)
7) ap-southeast-1 : Asia Pacific (Singapore)
8) ap-southeast-2 : Asia Pacific (Sydney)
9) ap-northeast-1 : Asia Pacific (Tokyo)
10) ap-northeast-2 : Asia Pacific (Seoul)
11) sa-east-1 : South America (Sao Paulo)
12) cn-north-1 : China (Beijing)
(default is 3): 3
ERROR: The current user does not have the correct permissions. Reason: Operation Denied. The security token included in the request is invalid.
You have not yet set up your credentials or your credentials are incorrect
You must provide your credentials.
(aws-access-id): xxxxxxxxxxxxxxxxxxxxx
(aws-secret-key): xxxxxxxxxxxxxxxxxxxxxxxxxxx
ERROR: Operation Denied. The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
The Canonical String for this request should have been
'POST
/
host:elasticbeanstalk.us-west-2.amazonaws.com
x-amz-content-sha256:2dc533b6c6fe3c628385d2b22bfa9e25e75730ee05f85d3b1ce7bacddc535e27
x-amz-date:20160719T134302Z
host;x-amz-content-sha256;x-amz-date
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
The String-to-Sign should have been
'AWS4-HMAC-SHA256
20160719T134302Z
20160719/us-west-2/elasticbeanstalk/aws4_request
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3060 次 |
最近记录: |