This message was deleted.
# general
s
This message was deleted.
k
Unfortunately using the
--logtostderr
flag doesn't give anymore information regarding the error
Copy code
I1229 17:49:45.266951    6261 provider_plugin.go:1353] provider received rpc error `Unknown`: `1 error occurred:
	* error creating Lambda Function: ValidationException: 
	status code: 400, request id: 79f07df0-87a2-4ef7-8e33-53e3ea360c0f

`
I1229 17:49:45.266972    6261 provider_plugin.go:1356] rpc error kind `Unknown` may not be recoverable
I1229 17:49:45.266988    6261 provider_plugin.go:717] Provider[aws, 0xc001b54840].Create(urn:pulumi:development::lambda-func-auth-send-welcome-email::aws:lambda/function:Function::auth-send-welcome-email) failed: 1 error occurred:
	* error creating Lambda Function: ValidationException: 
	status code: 400, request id: 79f07df0-87a2-4ef7-8e33-53e3ea360c0f

I1229 17:49:45.267020    6261 eventsink.go:86] eventSink::Error(<{%reset%}>1 error occurred:
	* error creating Lambda Function: ValidationException: 
	status code: 400, request id: 79f07df0-87a2-4ef7-8e33-53e3ea360c0f

<{%reset%}>)
I1229 17:49:45.267184    6261 snapshot.go:301] SnapshotManager: createSnapshotMutation.End(..., false)
I1229 17:49:45.267245    6261 snapshot.go:521] SnapshotManager.markOperationComplete(urn:pulumi:development::lambda-func-auth-send-welcome-email::aws:lambda/function:Function::auth-send-welcome-email)
I1229 17:49:45.724715    6261 step_executor.go:321] StepExecutor worker(5): step create on urn:pulumi:development::lambda-func-auth-send-welcome-email::aws:lambda/function:Function::auth-send-welcome-email failed with an error: 1 error occurred:
	* error creating Lambda Function: ValidationException: 
	status code: 400, request id: 79f07df0-87a2-4ef7-8e33-53e3ea360c0f
w
There are a couple of options you can use to get more information:
--debug
and
-v X
where X is from 1 to 9 and 9 providing the most information.
k
Hi Mitch, thanks for the reply. The output that I have shared was with the -v flag set to 9. Luckily I was able to figure out what was wrong by looking at examples on github and saw that by providing the
handler
property to the lambda function creation solved the problem.
w
Happy to hear you were able to figure it out.
🙂 1
b
@kind-school-28825 unfortunately this error is what is returned by the AWS API, it's not a Pulumi error
✅ 1