question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
apoorvmotecommented, Sep 9, 2020

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.

0reactions
lal-vermacommented, Sep 29, 2022

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found