Simple Auth Service running on Lambda with SecretsManager and DynamoDB
Localstack should be installed and running.
- Populate localstack with ./localstack/populate.sh script
- Create test-parameters.env file from the example with your localstack url
- Update region parameter in sam-start to the same region as in LocalStack
- Start AWS SAM with ./sam-start script
- run npm test or use the client from web-test folder
- Integration tests uses domain, user and password from test-variables file, which are the same as in the localstack population script.
- Create stack using the AWS Console or CLI, populating the parameters.
- AWS SAM uses already set parameters values from the stack when deploying.
- Deploying using AWS
sam deploy
or setup a Jenkins pipeline.
- Update code to use more non relational data structure in dynamodb instead of current relational approach