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
2 changes: 1 addition & 1 deletion examples/simple/ctx.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "context" {
source = "bendoerr-terraform-modules/context/null"
version = "0.5.0"
version = "0.5.1"
namespace = var.namespace
role = "tf-lambda"
region = "us-east-1"
Expand Down
2 changes: 1 addition & 1 deletion main.tf

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [Trivy] <AVD-AWS-0066> reported by reviewdog 🐶
Artifact: main.tf
Type: terraform
Vulnerability AVD-AWS-0066
Severity: LOW
Message: Function does not have tracing enabled.
Link: AVD-AWS-0066

resource "aws_lambda_function" "this" {
function_name = module.label.id
description = var.description
tags = module.label.tags
filename = var.filename
source_code_hash = var.source_code_hash != null ? var.source_code_hash : filebase64sha256(var.filename)
runtime = var.runtime
memory_size = var.memory_size
architectures = var.architectures
role = aws_iam_role.this.arn
handler = var.handler
timeout = var.timeout
publish = var.publish
layers = var.layers
kms_key_arn = var.env_kms_key_arn
dynamic "environment" {
for_each = length(keys(var.environment_variables)) == 0 ? [] : [true]
content {
variables = var.environment_variables
}
}
dynamic "tracing_config" {
for_each = var.enable_tracing ? [true] : []
content {
mode = var.tracing_mode
}
}
dynamic "vpc_config" {
for_each = var.vpc_subnet_ids != null && var.vpc_security_group_ids != null ? [true] : []
content {
security_group_ids = var.vpc_security_group_ids
subnet_ids = var.vpc_subnet_ids
}
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "label" {
source = "bendoerr-terraform-modules/label/null"
version = "0.4.2"
version = "0.5.0"
context = var.context
name = var.name
}
Expand Down
Loading