Skip to content

Commit

Permalink
nodejs20.x + update default name pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengaDev committed May 26, 2024
1 parent d1d4d35 commit 687c51f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/lambda/lambda.tf
Original file line number Diff line number Diff line change
@@ -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}"
}

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.37.0"
version = ">= 5.26.0"
}
}
}

0 comments on commit 687c51f

Please sign in to comment.