4

初めてElastic BeanstalkにDjangoアプリケーションをデプロイしようとしています。私は助けのために2つのチュートリアルherehereを続けてきましたが、私はチュートリアルでカバーしていないような問題に遭遇しています。awsebcliを使用してElastic Beanstalkアプリケーションをデプロイするときに「操作が拒否されました」というエラーが発生しました。

これまでの手順では、awsebcliをPython 3.4仮想環境にインストールし、プロジェクトディレクトリにcdしました。私はeb initに電話します。次に、アクセスキーを入力するよう促されます。私はそれらをテキストファイルに保存していましたので、キーをコピーして貼り付けました(末尾に空白がないことを確認してください)。

問題はエラーが投げ返されていることである。

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.

奇妙なことは、私は私の展開のための領域番号を入力した後、後続の試行でエラーが以前にポップアップするということです。しかし、それはまだ、とにかくキーのために私を求められます。ここでは

ERROR: The current user does not have the correct permissions. Reason: 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.

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' 

答えて

4

だから、問題は私のセキュリティキーは、「時代遅れの」だったということでしたが判明します。これは、IAMのアクセス許可が最初のキーセットの生成とアプリケーションのデプロイの間で変更されたためです。

新しいキーセットを生成することで問題が解決しました。

関連する問題