rich-motorcycle-71684
02/24/2023, 7:17 AMtype: aws:apigateway:RestApi
and
type: aws-apigateway:RestAPI
I can't seem to find it in the docs.
The 2nd one has .url
as a property, the first doesn't. But the first one is what is mentioned in the documentation, I also checked the aws native api docs but that is very lacking in examples and also doesn't have .url
as an output property.
The first is generated by doing pulumi new
and selecting from one of the templates, I believe it is aws yaml serverless or something like thataws-apigateway:RestAPI
seems much easier and simpler to use, I can set it up and integrate with a lambda function in 4 lines of code, and it deploys and gives me the output URL.
However, I could not work out how to add a {proxy+}
method on it, and I cannot find the documention on it. All the documentation seems to be for the aws:apigateway:restApi
version (or the aws-native
provider)
The other method, so far I have 40 lines of code and still no working lambda integration.tall-librarian-49374
02/24/2023, 9:26 PMrich-motorcycle-71684
02/27/2023, 12:20 AM