-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(platforms): Add AWS Lambda .NET C# platform guide #1618
Conversation
It's unfortunate AWS enforces a 5KB limit on environment variables because it makes cert handling more complex (AWS, in general is more complex than the other providers). In order to not use any other service and avoid deploying files, we have to use a single environment variable to store the private key, which needs to be encoded. |
The template sets up a singleton `DocumentStore` and dependency injection for the `IAsyncDocumentStore` per handler invocation which you can inject into Function classes. | ||
|
||
### Example: Injecting `IAsyncDocumentSession` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better place code samples in a separate compilable file so we can tell if there are errors
[gh-variables]: https://docs.github.com/en/actions/learn-github-actions/variables | ||
[cloud-signup]: https://cloud.ravendb.net?utm_source=ravendb_docs&utm_medium=web&utm_campaign=howto_template_lambda_csharp&utm_content=cloud_signup | ||
[docs-lambda-secrets]: ../secrets-manager | ||
[docs-get-started]: /docs/article-page/csharp/start/getting-started |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix links (just precede with https://ravendb.net)
Related to #1617 and #1616, this adds a platform guide for getting started with a RavenDB template for AWS Lambda and C#. The template is not a full SAM (Serverless) template but a Lambda Function Handler which is the simplest kind that "just works."
TODO
RavenSettings__CertPublicKeyPath
andRavenSettings__CertPrivateKey
settingsPost-publish / later