python - 'Operation Denied' Error when deploying an Elastic Beanstalk app using awsebcli -


i'm trying deploy django application onto elastic beanstalk first time. i've been following 2 tutorials here , here assistance running issue tutorials not seem cover.

the steps followed far installed awsebcli python3.4 virtual environment , cd projects directory. call eb init. prompted type in access keys. had saved them text file copy , pasted keys (ensuring no trailing white spaces) terminal.

the problem error thrown back:

error: operation denied. request signature calculated not match signature provided. check aws secret access key , signing method. consult service documentation details.

the weird thing on subsequent attempts error pops earlier after enter region number deployment. still prompts me keys anyway:

error: current user not have correct permissions. reason: operation denied. request signature calculated not match signature provided. check aws secret access key , signing method. consult service documentation details.

here full output of eb init --debug:

e$ eb init -- debug  select default region 1) us-east-1 : east (n. virginia) 2) us-west-1 : west (n. california) 3) us-west-2 : 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 3): 3 error: current user not have correct permissions. reason: operation denied. security token included in request invalid. have not yet set credentials or credentials incorrect  must provide credentials. (aws-access-id): xxxxxxxxxxxxxxxxxxxxx (aws-secret-key): xxxxxxxxxxxxxxxxxxxxxxxxxxx error: operation denied. request signature calculated not match signature provided. check aws secret access key , signing method. consult service documentation details.  canonical string 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'  string-to-sign should have been 'aws4-hmac-sha256 20160719t134302z 20160719/us-west-2/elasticbeanstalk/aws4_request xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 

so turns out issue security keys "out of date". due iam permissions being changed between generation of first set of keys , attempt deploy application.

generating new set of keys solved problem.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -