Skip to content
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

Closed
wants to merge 14 commits into from

Conversation

kamranayub
Copy link
Contributor

@kamranayub kamranayub commented Mar 11, 2023

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

  • Finish final draft
  • Update to use RavenSettings__CertPublicKeyPath and RavenSettings__CertPrivateKey settings
  • Add screenshots from video

Post-publish / later

@kamranayub
Copy link
Contributor Author

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.

@kamranayub kamranayub marked this pull request as ready for review June 28, 2023 15:06
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`

Copy link
Contributor

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
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants