- THE SECURITY TOKEN INCLUDED IN THE REQUEST IS INVALID HOW TO
- THE SECURITY TOKEN INCLUDED IN THE REQUEST IS INVALID CODE
- THE SECURITY TOKEN INCLUDED IN THE REQUEST IS INVALID OFFLINE
So I have imported the SDK and can start the state machine const AWS = require('aws-sdk') Ĭonst StepFunctions = new AWS. I am working with the AWS SDK in a Node env lambda I am attempting to get the execution history to check for running state machines before invoking a start. Is there anything I can do to use and create an HTTP endpoint inside the lambda stack to not rely on the cdk deploy ApiGatewayStack command to deploy new endpoints? The problem with this workaround is that whenever I want to add another stack that uses the Apigw I will have to run cdk deploy ApiGatewayStack multiple times increasing the deployment time. But if I re-run the command cdk deploy ApiGatewayStack the resource whoami is created and I can use curl to make an HTTP GET request to retrieve the value generated in the lambda function. Looking at the resources in the ApiGateway dashboard console nothing is created. The function has the expected configuration for the VPC but there is no trigger for the api-gateway. I deployed the stacks in the following order: cdk deploy VpcStackĮverything works properly, the vpc is created and the APIgw is also created, the problem is in the lambda function. Public StepFunctionExecutor(String roleArn, String region) )
THE SECURITY TOKEN INCLUDED IN THE REQUEST IS INVALID CODE
(Service: AWSSecurityTokenService Status Code: 403 Error Code: InvalidClientTokenId Request ID: 49a7e972-b480-4928-a659-fdc0778feab2 Proxy: null)īelow is my code snippet - import .AWSStepFunctions But I am getting this exception - .model.AWSSecurityTokenServiceException: The security token included in the request is invalid. Security Token Service validates the token included in the SOAP header by using the settings. I am trying to create a step function executor to trigger a step function workflow in my aws account. Security Token Service will process the incoming request.
THE SECURITY TOKEN INCLUDED IN THE REQUEST IS INVALID HOW TO
![the security token included in the request is invalid the security token included in the request is invalid](https://user-images.githubusercontent.com/61926568/118635362-1dce6900-b7f1-11eb-9bfe-b3a26edde197.png)
THE SECURITY TOKEN INCLUDED IN THE REQUEST IS INVALID OFFLINE