Closed jkodroff closed 2 years ago
Oh I think this may be a YAML bug, do you have the full resource declaration? It looks like you might also be missing a properties
key.
If this is a YAML bug we'll move it over there.
With the properties
key:
restApi:
type: aws-apigateway:index:restAPI
properties:
routes:
- path: "/"
method: "GET"
eventHandler: ${lambda}
Diagnostics:
pulumi:pulumi:Stack (awsx-serverless-yaml-dev):
Error: error resolving type of resource restApi: internal error loading package "aws-apigateway": <nil>: #/name: no name provided;
on Pulumi.yaml line 48:
48: type: aws-apigateway:index:restAPI
error resolving type of resource restApi: internal error loading package "aws-apigateway": <nil>: #/name: no name provided;
error: Error: error resolving type of resource restApi: internal error loading package "aws-apigateway": <nil>: #/name: no name provided;
on Pulumi.yaml line 48:
48: type: aws-apigateway:index:restAPI
error resolving type of resource restApi: internal error loading package "aws-apigateway": <nil>: #/name: no name provided;
error: an unhandled error occurred: failed to evaluate template
This is caused by #16, the provider defined here does not implement GetSchema:
This snippet (not minimal - LMK if you need a minimal code sample):
Produces this error:
Was referred to file a bug here by @AaronFriel, so assuming it's not an issue with the Pulumi YAML code.