Skip to content

Commit ba648e0

Browse files
authored
Merge pull request #10 from lutz108/main
Update variables.tf
2 parents b27ab92 + d388658 commit ba648e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ variable "application_name" {
88
variable "functionbeat_version" {
99
description = "Funtionbeat version to deploy"
1010
type = string
11+
validation {
12+
condition = tonumber(split(".", var.functionbeat_version)[0]) >= 8 && tonumber(split(".", var.functionbeat_version)[1]) >= 12 && tonumber(split(".", var.functionbeat_version)[2]) >= 1
13+
error_message = "The functionbeat_version must be at least '8.12.1' to be able to use the provided.al2 aws lambda runtime."
14+
}
1115
}
1216

1317
variable "lambda_config" {

0 commit comments

Comments
 (0)