swift-painter-31084
02/14/2020, 9:18 PMaws:lambda:Function (webhook-to-sqs):
error: Error creating Lambda function: ValidationException:
status code: 400, request id: 8c850971-e5d9-4be9-a285-5905fca34f90
with this resource:
return new aws.lambda.Function("webhook-to-sqs", {
code: "./inc/core/processors/webhook-to-sqs.zip",
handler: "index.handler",
description: "write events to queue and return 200",
runtime: "nodejs12.x",
role: role,
environment: {
variables: {
"QUEUEID": queue.arn
}
}
});
As part of my troubleshooting efforts I was able to create the lambda with the AWS CLI using mostly the same settings and zip, and was able to verify its working in the console as expected.
Is there anything I can do to get a more clear error message?stocky-island-3676
02/14/2020, 9:26 PM--verbose
flag. But this error is from the underlying Terraform provider. I don’t know if the debug level is propagated to the provider, though. If not, it won’t help, unfortunately.swift-painter-31084
02/14/2020, 9:31 PMstocky-island-3676
02/19/2020, 3:58 PMTF_LOG=DEBUG
. Thanks for Lars’ hint: https://pulumi-community.slack.com/archives/CRFUR2DGB/p1582127509076800?thread_ts=1582127424.076300&cid=CRFUR2DGB
Pulumi doesn’t generate Terraform code. It directly communicates with the underlying Terraform provider binary. The TF_LOG
should work on the Terraform provider binaries.