Skip to content

Commit fd40fdf

Browse files
author
Scott Miller
committed
parameterize version
1 parent 808db0f commit fd40fdf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module "lambda_version" {
1515

1616
repo_name = local.repo_name
1717
repo_owner = local.repo_owner
18-
version_constraint = "~1.0.1-rc6"
18+
version_constraint = var.lambda_version_constraint
1919
}
2020

2121
locals {

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ locals {
1010
repo_name = "terraform-aws-asg-rolling-restart-lambda"
1111
}
1212

13+
variable "lambda_version_constraint" {
14+
default = "~1.0.1-rc7"
15+
description = "NPM style version constraint to apply when looking for the correct version of the lambda code"
16+
type = string
17+
}
18+
1319
variable "loglevel" {
1420
type = string
1521
default = "INFO"

0 commit comments

Comments
 (0)