lemon-spoon-91807
07/09/2018, 9:31 PM@pulumi/aws
and @pulumi/aws-serverless
. These are our APIs for providing great access to the AWS cloud. Right now, i would recommend using them over cloud.API
for more technical scenarios (like this one). cloud.API
is more a work in progress, and wants to provide easy cloud app building, but without necessarily being able to take care of complex situations like yourstall-librarian-49374
07/10/2018, 8:06 AMwhite-balloon-205
07/10/2018, 4:26 PMserverless.apigateway.API
is to take care of all the complex stuff needed to configure API Gateway. The Role/Policy is part of the specific Lambda, and in the cases where you are providing that yourself, that part still has to be done manually. But even that we will likely add some helpers to make it a bit simpler to create with sensible defaults.