Thanks for reaching out, Tim here with Support Engineering.
When you started step function local did you use the JAR method or the docker method?
When you started it up, did you run into any of the following error messages?
2022-07-20 16:33:28.828: Failed to load credentials from environment because Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)) 2022-07-20 16:33:28.865: Failed to load credentials from profile: default because profile file cannot be null 2022-07-20 16:33:28.865: Failed to load credentials from system properties because Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey) 2022-07-20 16:33:28.865: Failed to load credentials, default to dummy credentials, so any connection to AWS services will not work, connections to local endpoints are not affected.
If you did, did you follow the documentation at these steps (one is for the JAR method to provide credentials and the other is for docker):
to provide credentials into the system?
Could you also try to perform this test on the cloud resources and not local? That would potentially give us an idea with some execution logs as to what is occurring and isolate if it's a step function local, docker, or state machine item and helps chops up and pinpoint the issue a bit more.
Hi Tim, thank you for the response. Here are the answers to your queries:
- We use docker for setting up Step Function locally
- No I do not see any of the errors mentioned while setting up locally
- Yes, I have
aws-stepfunctions-local-credentials.txtfile which looks like this:
AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test STEPFUNCTIONS_PORT=8083 STEP_FUNCTIONS_ENDPOINT=http://localhost:8083/
I have also tried putting
AWS_SESSION_TOKEN=test to the above file, but no luck.
- I have tried a similar nested workflow in the testing AWS environment and the entire workflow finishes successfully.
Thanks for following up!
Could you share the command you're using to start step function local?
Invalid security token error when executing nested step function on Step Functions LocalAccepted Answerasked 3 months ago
State Machine times-out on ChoiceAccepted Answerasked 13 days ago
Customise emitted SNS message in state machineAccepted Answerasked 3 months ago
Step Functions MAP state billing questionAccepted Answerasked 8 months ago
The security token included in the request is invalidasked a month ago
States.Runtime error when nested step function fails in Step Functions Localasked 2 months ago
Cannot directly set up BatchGetItem step inside a State Machineasked 2 months ago
S3 object and lambda function in step machine with the asynchronous express workflowsAccepted Answerasked 7 months ago
Error "The security token included in the request is invalid" invoking lambda function urlasked 2 months ago
DeepLens - How to fix "The security token included in the request is invalid"?asked 4 months ago