I'm having a hard time creating an explicit Lambda...
# general
I'm having a hard time creating an explicit Lambda function. I'm consistently getting this error:
Copy code
aws:lambda:Function (webhook-to-sqs):
    error: Error creating Lambda function: ValidationException:
        status code: 400, request id: 8c850971-e5d9-4be9-a285-5905fca34f90
with this resource:
Copy code
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?
@swift-painter-31084 You could run Pulumi with the
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.
Actually, it would be good when the body of the API response would always be output as well.
👍 1
In this case --verbose didn't return anything extra. Is there any way to see the generated terraform so I could maybe try to invoke that directly and get some feedback?
@swift-painter-31084 Use the environment variable
. 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
should work on the Terraform provider binaries.
In case you find a bug from inside this provider, here’s the repository of it: https://github.com/terraform-providers/terraform-provider-aws