Lambda functions created will only send logs to the cloudwatch group created by the cloudwatch_log_group module if var.function_name is lowercase.
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 58/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- aws
- Bereich
- cloud, infrastructure
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- HCL
- Sterne
- 36
- Forks
- 44
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cloudposse/terraform-aws-lambda-function
-
Warning: Deprecated attributeEvtl. vergeben @arnoldasbrazys hat das vor 402 Tagen übernommen. Offenbug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 55/100
cloudposse/terraform-aws-lambda-function#89 · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
cloudposse/terraform-aws-lambda-function#84 · 3 Reaktionen ·
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cloudposse/terraform-aws-lambda-function#72 · 1 Kommentar · 2 Reaktionen ·
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cloudposse/terraform-aws-lambda-function#62 · 1 Kommentar ·
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 55/100
cloudposse/terraform-aws-lambda-function#43 · 2 Kommentare · 4 Reaktionen ·
Alle Issues in cloudposse/terraform-aws-lambda-function
Ähnliche Issues
-
api: run samples
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
GoogleCloudPlatform/python-docs-samples#14633 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
PyArrowFileIO: every small S3 write is a 3-request multipart upload; expose allow_delayed_openOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
apache/iceberg-python#4093 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement exporter/awss3 needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
open-telemetry/opentelemetry-collector-contrib#51905 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
- P2: has workaround pkg: cloudflare triage: fix pending
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
withastro/astro#18319 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
@aws-cdk/aws-lambda needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag