-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide missing key names in error messages #651
Comments
I think this is probably more an issue in the aws provider than the engine? cc @pulumi/platform-providers Also referencing back to the confusion of pulumi/pulumi#10446, this:
Is a bit odd that it looks like a bucket error but it's actually a provider error. I'm very tempted to remove the async configuration of providers to get better looking diagnostics here. |
The error message originates from terraform-plugin-sdk so I don't think it's provider specific. The key name is added in |
I have some good news that might be relevant here. This looks like it could potentially be a duplicate #906 fixed by #1153 released in https://github.com/pulumi/pulumi-terraform-bridge/releases/tag/v3.47.4 release of the bridge, but the fix being applied to the bridge it would need pulumi-aws to upgrade to 3.47.4 before we can attempt to repro. |
I checked, and this problem still presents on pulumi-aws 5.41.0 (on bridge version v3.49.1). |
I actually cannot reproduce right now.
|
All right, looks like localstack/pulumi-local#6 fix has landed and removed the problematic key. I can still reproduce the issue if I build against
However, if I try to rebuild pulumi-aws against the latest bridge version I get this new behavior:
The "Did you mean aws:endpoints" bit is an issue with typo detection code that we need to fix, but the original issue appears solved. I've checked the diagnostic we are receiving from the upstream provider and it does not appear that the bridge is dropping any information - unfortunately the diagnostic just says "Invalid or unknown key" and does not state what the problem is. |
Confirmed fixed as of v3.50.1 version of the bridge. This fix should propagate to pulumi-aws through routine dependency updates. |
What happened?
WHAT
pulumi up
fails with missing keys, but does not report what the missing keys actually are.RELATED
Steps to reproduce
Following Instructions:
Installed
REPRO
ERROR
Further Links:
pulumi/examples#185 (comment)
pulumi/pulumi#3546
pulumi/pulumi#4718
pulumi/pulumi#4720
Expected Behavior
At a high level, I'd expect the
pulumi up
command to succeed. If it doesn't I expect an error message that tells me what the problem is. Here's what we get:Hello? Bueller? What's the Invalid or unknown key?
Here's what would be helpful
Actual Behavior
See above.
Output of
pulumi about
$ pulumi about
CLI
Version 3.46.1
Go Version go1.19.2
Go Compiler gc
Plugins
NAME VERSION
aws 5.20.0
python unknown
Host
OS ubuntu
Version 22.04
Arch x86_64
This project is written in python: executable='/home/todd/.pyenv/shims/python3' version='3.10.6
'
Current Stack: localstack
TYPE URN
pulumi:pulumi:Stack urn:pulumi:localstack::blargblarg::pulumi:pulumi:Stack::blargblarg-localstack
pulumi:providers:aws urn:pulumi:localstack::blargblarg::pulumi:providers:aws::default_5_20_0
aws:s3/bucket:Bucket urn:pulumi:localstack::blargblarg::aws:s3/bucket:Bucket::my-bucket
Found no pending operations associated with localstack
Backend
Name pulumi.com
URL https://app.pulumi.com/ToddG
User ToddG
Organizations ToddG, redzone-co
Dependencies:
NAME VERSION
pip 22.3.1
pulumi-aws 5.20.0
setuptools 65.5.1
wheel 0.38.4
Pulumi locates its logs in /tmp by default
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: