2 Answers
- Newest
- Most votes
- Most comments
0
Hello,
If you think you've configured the access and secret key correctly, as a first step I would recommend to run this command to ensure your credentials are working correctly. This command should return details about your IAM user if the credentials are correct.
aws sts get-caller-identity
0
Hello.
Does it match the access key etc. that can be checked with the command below?
aws configure list
Also, access keys have a priority order of loading, and even if they are set in the Credentials file, if the access key is set in an environment variable, it will be loaded from the environment variable.
Therefore, please check whether the access key is set in the environment variable.
https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#configure-precedence
Relevant content
- asked 2 years ago
- asked 10 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 10 months ago
An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid. i got this error
Hi,
Run aws configure list to check if it matches the secret and access key or I would recommend to recreate the secret and access key in the IAM console and try rerunning eb init again.