https://pulumi.com logo
Title
b

big-account-56668

09/30/2020, 1:24 PM
Using Go I'm trying to create a new Lambda function and I've specified the required handler, role and runtime but I keep getting
aws:lambda:Function (my-lambda):
    error: Preview failed: required configuration keys were missing
After adding a name (that I'm assuming maps to the required function_name) still no dice. Next trying to add a local archive using the code field still nothing. I've looked at AWS docs, Pulumi docs, pkg.go.dev docs, Terraform docs and source but have been unable to figure it out. What am I missing?
b

billowy-army-68599

09/30/2020, 2:27 PM
You need to set your aws region, this is not a good error message I’ll agree
pulumi config set aws:region
b

broad-dog-22463

09/30/2020, 3:47 PM
I know where this part of the code is - I will open an issue to improvie the error message
p

polite-pillow-78450

09/30/2020, 6:35 PM
Thank you!
b

big-account-56668

10/01/2020, 8:58 AM
That was it, thanks! Adding the keys as suggested in the issue sounds like a great idea. It would've definitely helped.