Skip to content

2.0.0

Choose a tag to compare

@rotciw rotciw released this 08 Dec 14:06
· 1 commit to master since this release

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