Lambda functions created will only send logs to the cloudwatch group created by the cloudwatch_log_group module if var.function_name is lowercase.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- aws
- Lĩnh vực
- cloud, infrastructure
Hướng nghiên cứu
Start with main.tf and the cloudwatch_log_group module, then inspect cloudposse/terraform-null-label/variables.tf to trace how function_name casing reaches both resources. Reproduce with a mixed-case function_name and compare the Lambda and CloudWatch log group names. Done means the names follow the same casing convention, or the inputs documentation clearly states the lowercase requirement.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the Bug
The cloudwatch log group created with the cloudwatch_log_group module will only match the name of lambda function if var.function_name is lowercase. For example, if var.function_name is Prod-FooBar then the name of the cloudwatch log group created will be /aws/lambda/prod-foobar.
AWS automatically creates cloudwatch log groups based on the name of the lambda function, so once Prod-FooBar is invoked for the first time yet another (non-terraform managed) cloudwatch log group is created called /aws/lambda/Prod-Foobar with default settings.
Expected Behavior
The cloudwatch log group created with the cloudwatch_log_group module follows the same casing conventions as the lambda function name, so if var.function_name is 'Prod-FooBar' then the aws_cloudwatch_log_group created should have the name /aws/lambda/Prod-FooBar
Steps to Reproduce
Set function_name to a string that contains a mix of capital and lowercase letters.
Screenshots
No response
Environment
Module version: 0.6.1
Terraform: 1.11.3
Additional Context
If this is the intended behavior of this module, and users are meant to either pass in a lowercase string for function_name or edit the cloudposse/terraform-null-label/variables.tf, then the inputs documentation should be updated to reflect this.
If not, then the cloudwatch log group created by this module should ALWAYS follow the /aws/lambda/<function name> convention or the log_group should be defined in a logging_config block.
Since the aws_lambda_function block defined in main.tf already depends_on the cloudwatch_log_group module block, setting the function_name of that block to cloudwatch_log_group.outputs.log_group_name would guarantee that the name of the lambda and the log group match, but that would require anyone wanting to use something other than the default lowercase conventions to copy and edit the contents of cloudposse/terraform-null-label/variables.tf.
- Ngôn ngữ chính
- HCL
- Star
- 36
- Fork
- 44
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudposse/terraform-aws-lambda-function
-
Warning: Deprecated attributeCó thể đã có người làm @arnoldasbrazys đã nhận 402 ngày trước. Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
cloudposse/terraform-aws-lambda-function#89 · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
cloudposse/terraform-aws-lambda-function#84 · 3 reaction ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
cloudposse/terraform-aws-lambda-function#72 · 1 bình luận · 2 reaction ·
-
Churn with `aws_iam_role.this`Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
cloudposse/terraform-aws-lambda-function#62 · 1 bình luận ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
cloudposse/terraform-aws-lambda-function#43 · 2 bình luận · 4 reaction ·
Tất cả issue của cloudposse/terraform-aws-lambda-function
Issue tương tự
-
Apex redirects drop query paramsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 13 ngày
-
Product: Terraform (AVM) Topic: Networking (HS) :globe_with_meridians:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Azure/Azure-Landing-Zones#4300 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
aws-samples/sample-per-model-bedrock#109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
test: gcloud CLI suites clobber ~/.config/gcloud, breaking local gcloud/gcloud-backed juju workflowsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởneeds-kind needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
No native support for REDIS_USER enviroment varCó thể đã có người làm @jholmes802 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100