Skip to content

Releases: nsbno/terraform-aws-lambda

2.1.0

13 Feb 11:32
4b6e383

Choose a tag to compare

Team Digital Usage with Datadog

For Team Digital services, use this configuration to ensure logs reach the correct Datadog tenant:

module "lambda" {
  source = "github.com/nsbno/terraform-aws-lambda?ref=x.y.z"

  department_override = "digital"
  team_name_override = "dx"

  # ... rest of your configuration goes here

```}

## What's Changed
* Add department_override variable and update Datadog API key logic to support multiple datadog instances by @tomarnebra in https://github.com/nsbno/terraform-aws-lambda/pull/16

## New Contributors
* @tomarnebra made their first contribution in https://github.com/nsbno/terraform-aws-lambda/pull/16

**Full Changelog**: https://github.com/nsbno/terraform-aws-lambda/compare/2.0.0...2.1.0

2.0.0

08 Dec 14:06

Choose a tag to compare

Important

Version 2 and over requires the usage of platform-actions, our GitHub Actions-based workflows.

How to upgrade from v1?

  1. Upgrade Vy provider. Find where you have defined required_providers, and add/bump verisons:
terraform {
  required_providers {
    vy = {
      source  = "nsbno/vy"
      version = ">= 1.0.0, <2.0.0"
    }
  }
}

  1. Add new vy_lambda_artifact data resource
data "vy_lambda_artifact" "this" {
  # Replace with your service GitHub repository name
  github_repository_name = "infrademo-demo-app"
}
  1. Point to the new resource in the artifact parameter
module "lambda_s3" {
  source = "github.com/nsbno/terraform-aws-lambda?ref=x.y.z"

  service_name = "get-users"

  artifact_type = "s3"
  artifact      = data.vy_lambda_artifact.this

  runtime = "python3.11"
  handler = "handler.main"

  memory = 256
}

Do you have a monorepo with multiple lambdas?
See this example

What's Changed

  • Bump Datadog layer versions and Lambda Insights version
  • Add support for Vy provider for V2 version handling by @rotciw in #15
  • Update examples for multiple use cases

Full Changelog: 1.1.0...2.0.0

1.2.0

27 Nov 09:15

Choose a tag to compare

  • Bump Lambda Layer versions
  • Refactor Datadog configuration to use options object for environment variables

To configure, use:

datadog_options = {
  profiling_enabled       = false
  trace_enabled           = true
  logs_injection          = true
  merge_xray_traces       = false
  serverless_logs_enabled = true
  capture_lambda_payload  = false
}

Full Changelog: 1.1.0...1.2.0
Full Changelog: 1.1.0...1.2.0

2.0.0-rc2

19 Sep 07:54

Choose a tag to compare

2.0.0-rc2 Pre-release
Pre-release
  • Allow specifying service account id to automatically fetch artifact information

Full Changelog: 2.0.0-rc1...2.0.0-rc2

2.0.0-rc1

16 Sep 08:16
1f57932

Choose a tag to compare

2.0.0-rc1 Pre-release
Pre-release

What's Changed

  • Update implementation to support new GHA based pipeline by @rotciw in #14

Full Changelog: 1.1.0...2.0.0-rc1

1.1.0

07 Aug 13:35

Choose a tag to compare

[Intended for Digital]

  • Add option to override datadog team name
  • Add option to override datadog api key secret

Full Changelog: 1.0.2...1.1.0

1.0.2

12 May 10:34

Choose a tag to compare

  • Set DataDog profiling to default false, as it reverts lambda extension to a compability version
  • Bump Lambda layer versions

Full Changelog: 1.0.1...1.0.2

1.0.1

30 Apr 11:46
e4cba2d

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.0.0...1.0.1

1.0.0

02 Apr 07:55

Choose a tag to compare

Note

Major Version Release

Read this Confluence Page for Datadog setup instructions

What's Changed

  • Changed name -> service_name
  • Added component_name to create a distinction when multiple lambdas belong to one service
  • Add support for python 3.13
  • Add Datadog by @rotciw in #2

Full Changelog: 0.7.0...1.0.0

1.0.0-rc4

21 Mar 07:22

Choose a tag to compare

1.0.0-rc4 Pre-release
Pre-release

Note

Read this Confluence Page for setup instructions

What's Changed

  • Update layer versions

Full Changelog: 1.0.0-rc3...1.0.0-rc4