The Amazon.Lambda.Annotations library makes dependency injection for .NET AWS Lambda functions easier. In this post, learn how to use DI with a function that is invoked directly and configure both scoped services and singleton services. Prerequisites include installing the latest tooling and templates, as well as creating an S3 bucket for Cloud Formation stacks. See examples of using scoped dependency injection and singleton injection via the function handler class. Join the .NET on AWS Slack community to connect with other developers and ask questions!