Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions autotagging.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# This is the optional Autotagging feature.

resource "aws_lambda_function" "auto_tagging" {
count = var.enable_auto_tagging == true ? 1 : 0

count = var.enable_auto_tagging == true ? 1 : 0
architectures = var.architectures
description = var.lambda_description
s3_key = var.auto_tagging_s3_key
s3_bucket = var.auto_tagging_s3_bucket
function_name = "${var.lambda_function_name}-auto_tagging"
role = aws_iam_role.auto_tagging_lambda[0].arn
handler = "provided"
runtime = "provided.al2"
runtime = "provided.al2023"
memory_size = var.lambda_memory_size
# lets set 2 minutes
timeout = var.lambda_timeout
Expand Down
6 changes: 3 additions & 3 deletions glue_create.tf
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,15 @@ resource "aws_iam_role" "glue_create" {
}

resource "aws_lambda_function" "glue_create_lambda" {
count = var.enable_glue_create ? 1 : 0

count = var.enable_glue_create ? 1 : 0
architectures = var.architectures
description = "Greate tables in AWS Glue catalog based on the table prefix"
s3_key = var.glue_create_config.lambda_s3_key
s3_bucket = var.glue_create_config.lambda_s3_bucket
function_name = var.glue_create_config.lambda_function_name
role = aws_iam_role.glue_create[0].arn
handler = "provided"
runtime = "provided.al2"
runtime = "provided.al2023"
memory_size = var.lambda_memory_size
timeout = var.lambda_timeout
environment {
Expand Down
6 changes: 3 additions & 3 deletions glue_sync.tf
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ resource "aws_iam_role" "glue_sync" {
}

resource "aws_lambda_function" "glue_sync_lambda" {
count = var.enable_glue_sync ? 1 : 0

count = var.enable_glue_sync ? 1 : 0
architectures = var.architectures
description = "Greate tables in AWS Glue catalog based on the table prefix"
s3_key = var.glue_sync_config.lambda_s3_key
s3_bucket = var.glue_sync_config.lambda_s3_bucket
function_name = var.glue_sync_config.lambda_function_name
role = aws_iam_role.glue_sync[0].arn
handler = "provided"
runtime = "provided.al2"
runtime = "provided.al2023"
memory_size = var.lambda_memory_size
timeout = var.lambda_timeout
environment {
Expand Down
6 changes: 4 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ locals {

resource "aws_lambda_function" "this_lambda" {
description = var.lambda_description
architectures = var.architectures
s3_key = var.lambda_s3_key
s3_bucket = var.lambda_s3_bucket
function_name = var.lambda_function_name
role = aws_iam_role.this_iam_role_lambda_kinesis.arn
handler = "provided"
runtime = "provided.al2"
runtime = "provided.al2023"
memory_size = var.lambda_memory_size
# lets set 2 minutes
timeout = var.lambda_timeout
Expand All @@ -113,13 +114,14 @@ resource "aws_lambda_function" "this_lambda" {
#### This lambda is optional and used only when grouping of events is required
resource "aws_lambda_function" "group_events_lambda" {
count = local.enable_group_events ? 1 : 0
architectures = var.architectures
description = "Group events for oxbow based on the table prefix"
s3_key = var.events_lambda_s3_key
s3_bucket = var.events_lambda_s3_bucket
function_name = var.events_lambda_function_name
role = aws_iam_role.this_iam_role_lambda_kinesis.arn
handler = "provided"
runtime = "provided.al2"
runtime = "provided.al2023"

environment {
variables = merge({
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,9 @@ variable "group_event_lambda_maximum_batching_window_in_seconds" {
description = "describe your variable"
default = 1
}

variable "architectures" {
description = "Instruction set architecture for your Lambda function. Valid values are [\"x86_64\"] and [\"arm64\"]."
type = list(string)
default = ["x86_64"]
}
Loading