1 Answer
- Newest
- Most votes
- Most comments
1
You must always have credentials to access other systems, no matter if its within AWS Org or not. You're ElasticBeanstalk should have a valid IAM role with adequate permissions to make requests to DynamoDB.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-instanceprofile.html
Ensure that you follow the credential chain and you do not have configured stale credentials higher up the chain which can lead to issues.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 14 days ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 months ago
I have it configured
AWS cli is working on ec2 with this app so i believe there is no problem with keys / credentials
The CLI is very likely using different credentials. In your app, call
GetCallerIdentity
https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html`Tried that, and get the same error about security token
SSH to your ElasticBeanstalk instance and export credentials using the CLI. This is the first in the chain and will solve your issue.