Skip to content

dynovaio/sample-system-aws-lambda

Sample-Code

Contributor Covenant License Jupyter Book Badge

AWS Lambda Samples

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.

Requirements

  • sdkman ()
  • goenv ()
  • nvm ()
  • docker ()
  • docker-compose ()
  • AWS CLI ()
  • AWS SAM CLI ()
  • New Relic account ()
  • Visual Studio Code (VSCode ↗) with the AWS Toolkit extension

Directory structure:

.
├── 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.

Usage

To use the samples, follow these steps:

  1. Clone the repository:

    git clone https://github.com/dynova.io/sample-system-aws-lambda.git
  2. Open a terminal and navigate to the root of the repository.

  3. Select a sample, navigate to its directory, follow the instructions in the README.md and meet the requirements.

  4. Run the sample locally to ensure that it works as expected.

  5. Deploy the sample to AWS using the AWS SAM CLI.

  6. Monitor the AWS Lambda in the New Relic dashboard.

  7. Clean up the resources after testing.

Contributing

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 ↗.

License

This project is licensed under the terms of the BSD-3-Clause ↗ license.

About

Sample AWS Lambdas to show how to monitor them with New Relic and OpenTelemetry

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors