This repository contains sample code for AWS Lambda. The samples are designed to help you understand how to insturment your AWS Lambda using New Relic and OpenTelemetry.
- sdkman (↗)
- goenv (↗)
- nvm (↗)
- docker (↗)
- docker-compose (↗)
- AWS CLI (↗)
- AWS SAM CLI (↗)
- New Relic account (↗)
- Visual Studio Code (VSCode ↗) with the AWS Toolkit extension
.
├── scripts
├── sample-dotnet8@otel
└── sample-golang@otel
scripts: Contains scripts to build and deploy the samples.sample-dotnet8@otel: Contains the sample code for the .NET 8 Lambda.sample-golang@otel: Contains the sample code for the Golang Lambda.
For detailed information about each sample, see the README.md file in each
folder.
To use the samples, follow these steps:
-
Clone the repository:
git clone https://github.com/dynova.io/sample-system-aws-lambda.git
-
Open a terminal and navigate to the root of the repository.
-
Select a sample, navigate to its directory, follow the instructions in the
README.mdand meet the requirements. -
Run the sample locally to ensure that it works as expected.
-
Deploy the sample to AWS using the AWS SAM CLI.
-
Monitor the AWS Lambda in the New Relic dashboard.
-
Clean up the resources after testing.
Sugestions and contributions are welcome!
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
For more information, please refer to the Code of Conduct ↗.
This project is licensed under the terms of the BSD-3-Clause ↗ license.
