We need to use lambda-datadog Terraform module wraps the aws_lambda_function resource and automatically configures your Lambda function for Datadog Serverless Monitoring by:
For details, please refer to: https://docs.datadoghq.com/serverless/aws_lambda/installation/python/?tab=terraform