Skip to content

Commit

Permalink
Use KMS Arn for lambda environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Plowman committed Oct 20, 2023
1 parent 8c514a9 commit 73de947
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions infrastructure/stacks/application/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ module "change_event_dlq_handler_lambda" {
function_name = var.change_event_dlq_handler_lambda
description = "Change Event DLQ Handler lambda"

create_package = false
image_uri = "${var.docker_registry}/${var.change_event_dlq_handler}:${var.change_event_dlq_handler_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
# kms_key_arn = data.aws_kms_key.signing_key.arn
create_package = false
image_uri = "${var.docker_registry}/${var.change_event_dlq_handler}:${var.change_event_dlq_handler_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
kms_key_arn = data.aws_kms_key.signing_key.arn
tracing_mode = "Active"
maximum_retry_attempts = 0

Expand Down Expand Up @@ -42,13 +42,13 @@ module "dos_db_handler_lambda" {
function_name = var.dos_db_handler_lambda
description = "DoS DB Handler lambda"

create_package = false
image_uri = "${var.docker_registry}/${var.dos_db_handler}:${var.dos_db_handler_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
# kms_key_arn = data.aws_kms_key.signing_key.arn
create_package = false
image_uri = "${var.docker_registry}/${var.dos_db_handler}:${var.dos_db_handler_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
kms_key_arn = data.aws_kms_key.signing_key.arn
tracing_mode = "Active"
maximum_retry_attempts = 0

Expand Down Expand Up @@ -94,13 +94,13 @@ module "dos_db_update_dlq_handler_lambda" {
function_name = var.dos_db_update_dlq_handler_lambda
description = "Change Event DLQ Handler lambda"

create_package = false
image_uri = "${var.docker_registry}/${var.dos_db_update_dlq_handler}:${var.change_event_dlq_handler_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
# kms_key_arn = data.aws_kms_key.signing_key.arn
create_package = false
image_uri = "${var.docker_registry}/${var.dos_db_update_dlq_handler}:${var.change_event_dlq_handler_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
kms_key_arn = data.aws_kms_key.signing_key.arn
tracing_mode = "Active"
maximum_retry_attempts = 0

Expand Down Expand Up @@ -130,13 +130,13 @@ module "event_replay_lambda" {
function_name = var.event_replay_lambda
description = "Event Replay lambda"

create_package = false
image_uri = "${var.docker_registry}/${var.event_replay}:${var.event_replay_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
# kms_key_arn = data.aws_kms_key.signing_key.arn
create_package = false
image_uri = "${var.docker_registry}/${var.event_replay}:${var.event_replay_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
kms_key_arn = data.aws_kms_key.signing_key.arn
tracing_mode = "Active"
maximum_retry_attempts = 0

Expand Down Expand Up @@ -169,13 +169,13 @@ module "ingest_change_event_lambda" {
function_name = var.ingest_change_event_lambda
description = "Ingest Change Event lambda"

create_package = false
image_uri = "${var.docker_registry}/${var.ingest_change_event}:${var.ingest_change_event_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
# kms_key_arn = data.aws_kms_key.signing_key.arn
create_package = false
image_uri = "${var.docker_registry}/${var.ingest_change_event}:${var.ingest_change_event_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
kms_key_arn = data.aws_kms_key.signing_key.arn
tracing_mode = "Active"
maximum_retry_attempts = 0

Expand Down Expand Up @@ -207,13 +207,13 @@ module "send_email_lambda" {
function_name = var.send_email_lambda
description = "Send Email lambda"

create_package = false
image_uri = "${var.docker_registry}/${var.send_email}:${var.send_email_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
# kms_key_arn = data.aws_kms_key.signing_key.arn
create_package = false
image_uri = "${var.docker_registry}/${var.send_email}:${var.send_email_version}"
package_type = "Image"
timeout = 30
memory_size = 128
architectures = ["arm64"]
kms_key_arn = data.aws_kms_key.signing_key.arn
tracing_mode = "Active"
maximum_retry_attempts = 2

Expand Down Expand Up @@ -393,13 +393,13 @@ module "quality_checker_lambda" {
function_name = var.quality_checker_lambda
description = "Quality Checker lambda"

create_package = false
image_uri = "${var.docker_registry}/${var.quality_checker}:${var.quality_checker_version}"
package_type = "Image"
timeout = 900
memory_size = 512
architectures = ["arm64"]
# kms_key_arn = data.aws_kms_key.signing_key.arn
create_package = false
image_uri = "${var.docker_registry}/${var.quality_checker}:${var.quality_checker_version}"
package_type = "Image"
timeout = 900
memory_size = 512
architectures = ["arm64"]
kms_key_arn = data.aws_kms_key.signing_key.arn
tracing_mode = "Active"
maximum_retry_attempts = 0

Expand Down

0 comments on commit 73de947

Please sign in to comment.