Can anyone tell me the different between ```type: ...
# yaml
r
Can anyone tell me the different between
Copy code
type: aws:apigateway:RestApi
and
Copy code
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 that
This one
aws-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.
t
The former is a raw resource that comes from the AWS provider. The latter is a high-level component from AWSX (see https://github.com/pulumi/pulumi-aws-apigateway)
r
@tall-librarian-49374 thank you!