bug: When using localstack with serverless always got Invalid token #10153
Labels
area: integration/serverless
Issues related to the Serverless Framework
aws:lambda
AWS Lambda
status: resolved/stale
Closed due to staleness
status: response required
Waiting for a response from the reporter
type: question
Please ask questions on discuss.localstack.cloud
Is there an existing issue for this?
Current Behavior
Receiving "The security token included in the request is invalid." error when trying to access SSM Parameters from Serverless lambda in Typescript project.
Expected Behavior
Read correctly SSM parameters.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
docker-composer:
serverless.ts
Creating a new SSM Parameter using:
From terminal when getting SSM Parameters:
Got:
Lambda:
Starting offline :
serverless offline start
Then test the lamda with:
curl -X POST http://localhost:3000/dev/profile -d '"{"name": "fake"}"'
And the result is:
UnrecognizedClientException: The security token included in the request is invalid.
aws/credentials:
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: