From 687c51f7aa0dac3e5cce81056e05fead2a963203 Mon Sep 17 00:00:00 2001 From: chenga Date: Sun, 26 May 2024 15:23:30 +0300 Subject: [PATCH] nodejs20.x + update default name pattern --- locals.tf | 2 +- modules/lambda/lambda.tf | 2 +- variables.tf | 2 +- version.tf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/locals.tf b/locals.tf index 08f2bf7..d54e6f1 100644 --- a/locals.tf +++ b/locals.tf @@ -1,5 +1,5 @@ locals { - resource_name_pattern = "${coalesce(var.resource_name_common_part, "spectral-${var.integration_type}-integration-${var.environment}")}-${random_string.random_resource_name_suffix.id}" + resource_name_pattern = "${coalesce(var.resource_name_common_part, "spectral-${var.integration_type}-integration-${var.environment}-${random_string.random_resource_name_suffix.id}")}" single_lambda_integration = contains(["jira", "terraform"], var.integration_type) ? true : false multiple_lambda_integration = contains(["gitlab", "github"], var.integration_type) ? true : false api_triggered_function_arn = local.single_lambda_integration ? module.lambda_function[0].lambda_function_arn : module.frontend_lambda_function[0].lambda_function_arn diff --git a/modules/lambda/lambda.tf b/modules/lambda/lambda.tf index e5213ba..9d06039 100644 --- a/modules/lambda/lambda.tf +++ b/modules/lambda/lambda.tf @@ -1,5 +1,5 @@ locals { - runtime = "nodejs18.x" + runtime = "nodejs20.x" lambda_source_code_zip_path = "${coalesce(var.lambda_source_code_path, "${path.module}/source_code/${var.integration_type}")}/${var.lambda_source_code_filename}" } diff --git a/variables.tf b/variables.tf index d2b1dec..0a35933 100644 --- a/variables.tf +++ b/variables.tf @@ -5,7 +5,7 @@ variable "integration_type" { description = "Spectral integration type (A unique phrase describing the integration) - Available values: `terraform`." validation { - condition = contains(["gitlab", "jira", "terraform"], var.integration_type) + condition = contains(["github", "gitlab", "jira", "terraform"], var.integration_type) error_message = "Integration type is invalid" } } diff --git a/version.tf b/version.tf index d9b116c..202d16f 100644 --- a/version.tf +++ b/version.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.37.0" + version = ">= 5.26.0" } } } \ No newline at end of file