amazon web services - InvalidSignatureException when using boto3 for dynamoDB on aws -


im facing sort of credentials issue when trying connect dynamodb on aws. locally works fine , can connect using env variables aws_access_key_id, aws_secret_access_key , aws_default_region ,

dynamoconnection = boto3.resource('dynamodb', endpoint_url='http://localhost:8000') 

when changing live creds in env variables , setting endpoint_url dynamodb on aws fails with:

"botocore.exceptions.clienterror: error occurred (invalidsignatureexception) when calling query operation: request signature calculated not match signature provided. check aws secret access key , signing method. consult service documentation details."

the creds valid used in different app talks same dynamodb. ive tried not using env variables rather directly in method error persisted. furthermore, avoid issues trailing spaces ive used credentials directly in code. im using python v3.4.4.

is there maybe header should set im not aware of? hints apprecihated.

edit

ive created new credentials (to make sure there alphanumerical signs) still no dice.

you shouldn't use endpoint_url when connecting real dynamodb service. that's connecting local services or non-standard endpoints. instead, specify region want:

dynamoconnection = boto3.resource('dynamodb', region_name='us-west-2') 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -