Closed xochilpili closed 3 months ago
Hey @xochilpili,
from your docker-compose it seems like you are using the community version of localstack, potentially an older version?
Please be aware that you need to add lambda
to the SERVICES
environment variable for localstack > 3.0 as otherwise the service would not be available at runtime.
For LocalStack Pro we have a feature called transparent endpoint injection, which would automatically redirect all your requests to LocalStack.
However, as you are using the community version, you need to add some additional settings for your lambda-code. Please follow the instructions in our docs.
closing the ticket due to inactivity
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:
Version
Environment