Skip to content

Commit

Permalink
Merge pull request #237 from silinternational/release/12.1.0
Browse files Browse the repository at this point in the history
Release 12.1.0 -- add support for provided.al2 Lambda runtime
  • Loading branch information
briskt authored Dec 4, 2023
2 parents a25aaba + d80146f commit 128b925
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/041-id-broker-search-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This module is used to create a lambda function for calling id-broker's search a

- `app_name` - Default: `idp-id-broker-search`
- `function_name` - Default: `idp-id-broker-search`
- `lambda_runtime` - AWS Lambda runtime environment, either `provided.al2` or `go1.x`. `go1.x` is deprecated but remains the default for backward compatibility
- `memory_size` - Default: `128`
- `timeout` - Default: `5`
- `function_zip_name` - Key to file in S3 for function zip file, Default: `idp-id-broker-search.zip`
Expand Down
2 changes: 1 addition & 1 deletion terraform/041-id-broker-search-lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "aws_lambda_function" "search" {
handler = var.function_name
memory_size = var.memory_size
role = aws_iam_role.functionRole.arn
runtime = "go1.x"
runtime = var.lambda_runtime
timeout = var.timeout

environment {
Expand Down
6 changes: 6 additions & 0 deletions terraform/041-id-broker-search-lambda/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ variable "idp_name" {
type = string
}

variable "lambda_runtime" {
description = "AWS Lambda runtime environment, either `provided.al2` or `go1.x`. `go1.x` is deprecated"
default = "go1.x"
type = string
}

variable "memory_size" {
default = "128"
}
Expand Down

0 comments on commit 128b925

Please sign in to comment.