Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aws sam invalid token included in the request is invalid

I am working using aws sam and when try to make sam deploy. I get this error:

Error: Failed to create managed resources: An error occurred (InvalidClientTokenId) when calling the CreateChangeSet operation: The security token included in the request is invalid. 

I had already changed my credentials from .aws and changed them using the command aws configure. I also get the error when I try to access to anything online, like if I try to upload a file to a S3 bucket.

Error: botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the UpdateItem operation: The security token included in the request is invalid.

Any ideas?

like image 363
Alexander Bodner Avatar asked Sep 01 '25 20:09

Alexander Bodner


1 Answers

I guess your credentials are OK but, check again if you are pointing to the right region. That was my problem indeed.

like image 168
Camilo A. Hernández Avatar answered Sep 04 '25 06:09

Camilo A. Hernández



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!