This message was deleted.
# golang
s
This message was deleted.
g
Aha! Got it!! I was missing the
SourceArn
field in the permission. The permissionArgs should have been something like:
Copy code
lambdaPermissions := &lambda.PermissionArgs{
			Action:    pulumi.String("lambda:InvokeFunction"),
			Function:  function.Name,
			Principal: pulumi.String("<http://apigateway.amazonaws.com|apigateway.amazonaws.com>"),
			SourceArn: pulumi.String("arn:aws:execute-api:us-west-2:ACCOUNTID:RESTAPI/*/GET/cart/all"),
		}
b
@green-morning-1318 if you have working code, I'd love you to open a PR that adds an example for others to learn from πŸ™‚
Or you can share it with me, I can anonymize it and post it and attribute it to you
g
Yeah, totally πŸ™Œ which repo do you want me to create a PR for?
b
pulumi/examples
and tag me (@stack72) on it
thanks!!!
g
Done πŸ˜‡ https://github.com/pulumi/examples/pull/601 And I learned a few new things while looking at some of the other samples. Y’all do really good work with those πŸ™Œ
b
You rock! Thanks
g
😳