Skip to content

Bug on upgrade to v1.6.1#78

Description

Describe the Bug

Hi there 馃憢 ,
After upgrading the module to v1.6.1, our logs stopped getting forwarged to Datadog.
I found the following error on CloudWatch:

[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': cannot import name 'formatargspec' from 'inspect' (/var/lang/lib/python3.11/inspect.py)

After downgrading, it worked again.

Expected Behavior

Logs getting forwarded to Datadog properly

Steps to Reproduce

Use the module like this:


module "datadog-lambda-forwarder" {
  source                = "cloudposse/datadog-lambda-forwarder/aws"
  version               = "1.6.1"
  forwarder_log_enabled = true

  dd_tags_map = {
    Environment = "production"
  }

  name               = "datadog_log_forwarder_production"
  lambda_memory_size = 1024
  lambda_timeout     = 900
  dd_api_key_source = {
    resource   = "ssm"
    identifier = "[redacted]"
  }

Screenshots

No response

Environment

  • Terraform 1.8.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug馃悰 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions