Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudwatch log group for Lambda@Edge is not set correctly #650

Open
1 task done
milpog opened this issue Dec 15, 2024 · 1 comment
Open
1 task done

Cloudwatch log group for Lambda@Edge is not set correctly #650

milpog opened this issue Dec 15, 2024 · 1 comment
Labels

Comments

@milpog
Copy link

milpog commented Dec 15, 2024

Description

When the var.lambda_at_edge variable is set to true, the CloudWatch log group created by this module is named /aws/lambda/us-east-1.${var.function_name}. However, the logging configuration for the Lambda function does not align with this and instead points to the log group /aws/lambda/${var.function_name}.

  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version [Required]: 7.17.0
  • Terraform version: OpenTofu v1.8.5 on darwin_arm64
  • Provider version(s): registry.opentofu.org/hashicorp/aws 5.81.0

Reproduction Code [Required]

terraform {
  backend "local" {}
}

terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"
    }
  }
}

provider "aws" {
  region = "us-east-1"
}

module "lambda" {
  source  = "terraform-aws-modules/lambda/aws"
  version = "7.17.0"

  lambda_at_edge = true
  publish        = true

  function_name = "example"
  handler       = "index.lambda_handler"
  runtime       = "python3.13"

  source_path = "${path.module}/index.py"
}

Steps to reproduce the behavior:

Deploy Lambda and navigate to AWS console to check the logs for created Lambda function.

Expected behavior

Lambda logging group should be set to /aws/lambda/us-east-1.example

Actual behavior

Lambda logging group is set to /aws/lambda/example, however Cloudwatch log group created by the module is named /aws/lambda/us-east-1.example

Copy link

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant