pulumi / pulumi-yaml

YAML language provider for Pulumi
Apache License 2.0
38 stars 11 forks source link

Better error messages when a resource is misspelled. #544

Open VenelinMartinov opened 6 months ago

VenelinMartinov commented 6 months ago

Hello!

Issue details

It's a bit hard to find out the right tokens for resources in YAML than in other languages - there's no SDK to look them up in.

It'd be great if the runtime suggested possible tokens similar to the input.

For example instead of:

error resolving type of resource serviceAccount: unable to find resource type "gcp:serviceaccount:Account" in resource provider "gcp"

it could say:

error resolving type of resource serviceAccount: unable to find resource type "gcp:serviceaccount:Account" in resource provider "gcp"
Did you mean "gcp:serviceAccount:Account"?

Affected area/feature