cdk command returns InvalidClientTokenId: The security token included in the request is invalid.
See original GitHub issue❓ General Issue
The Question
Environment
- CDK CLI Version: 1.44.0
- Module Version:
- Node.js Version: 12.16.2
- OS: macOS 10.14 Mojave
- Language (Version): Java 11
Other information
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How can I resolve the error "The security token included in the ...
A client error (InvalidClientTokenId) occurred when calling the UploadServerCertificate operation: The security token included in the request is invalid. I have ...
Read more >The Security Token included in the Request is Invalid
The error "the Security Token included in the Request in Invalid" can occur for multiple reasons: The user's credentials are inactive. Open the...
Read more >Resolve "The security token included in the request is expired ...
My Java applications using the AWS SDK for Java on an Amazon Elastic Compute Cloud (Amazon EC2) instance receive an exception similar to...
Read more >The security token included in the request is invalid - Seed.run
Problem. This happens when the AWS credentials used for your Serverless command are invalid. Or if they have not been configured on your...
Read more >awslabs/aws-cdk - Gitter
Should ECS's Task Definition ARN return version (i.e. TaskDefinition:1 )? I'm trying ... InvalidClientTokenId: The security token included in the request is ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had same error
The security token included in the request is invalid.
I deleted my existing access key and secret key and generated new one. And the problem is fixed.I was facing a similar issue. When I checked ~/.aws/credentials file I saw an additional statement referring to token “{someprefix}-token” with no value. I don’t know what generated this entry. When I removed it (without touching aws_access_key_id, aws_secret_access_key), my cdk started working 😃.
I am using cdk version - 2.39.1 (build f188fac)