localstack/pulumi-local

Provide missing key names in error messages

ToddG opened this issue · 3 comments

ToddG commented

WHAT
Provide better error messages, specifically missing keys.

WHY
I spent about 4 hours tracking down this issue.
Another user spent a significant amount of time as well, see: #5

HOW
Rather than emitting an opaque message such as:

  aws:s3:Bucket (my-bucket):
    error: could not validate provider configuration: 1 error occurred:
    	* Invalid or unknown key

Actually emit the name of the key, like this:

  aws:s3:Bucket (my-bucket):
    error: could not validate provider configuration: 1 error occurred:
    	* Invalid or unknown key: INVALID_OR_UNKNOWN_KEY_NAME_HERE
ToddG commented

Created issue in pulumi here: pulumi/pulumi-terraform-bridge#651