Stack Name - AWS Lambda MongoDB
The is the base reusable implementation for AWS Lambda type tech stacks using MongoDB.
The stack includes:
- A general purpose, document-based, distributed database built for modern application developers and for the cloud era
- An Object to Document mapping framework to simplify persisting Plain Old Java Objects
|Long Name||AWS Lambda MongoDB|
|Language(s)||Java 8+, NodeJS, YAML, XML, Velocity Macros|
|Example Project YAML||https://github.com/Harbormaster-AI/cli/blob/main/samples/yamls/project.as.code/aws-lambda-mongo-project-as-code.yml|
- Overloaded CI vendor specific macros to apply specifics for this tech stack, such as MongoDB settings, etc..
- Data access layer used by a Lambda function in order to read/write to MongoDB.
Important AWS Considerations
If Harbormaster is enabled to generate Terraform file(s) for AWS, it will create a secure EC2 instance with a running MongoDB database instance. Each lambda function will have an environment variable assigned called mongoDbServerAddresses. Its value is the URL(s) to the MongoDB instance(s) to be used by each lambda function for reading and writing.
For any CI platform, be sure to assign environment variables USERAWSACCESSKEY and USERAWSSECRETKEY to their respective values as assigned by AWS. Refer to the CI platform on how to assign environment variables.