2.0.0
Important
Version 2 and over requires the usage of platform-actions, our GitHub Actions-based workflows.
How to upgrade from v1?
- 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"
}
}
}
- Add new
vy_lambda_artifactdata resource
data "vy_lambda_artifact" "this" {
# Replace with your service GitHub repository name
github_repository_name = "infrademo-demo-app"
}
- Point to the new resource in the
artifactparameter
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