https://pulumi.com logo
#general
Title
# general
b

billions-rocket-37012

10/15/2022, 7:45 AM
How do I get more information what's actually wrong than this?
Copy code
error: could not validate provider configuration: 1 error occurred:
  	* Invalid or unknown key
...
debug: AWS Auth provider used: "StaticProvider"
debug: registering resource: ty=pulumi:pulumi:Stack, name=saas-python-local, custom=False, remote=False
warning: provider config warning: Argument is deprecated
...
error Command failed with exit code 255.
Running
pulumi up -d -v 3
but it gives me no information what attribute is deprecated or what key is invalid
e

echoing-dinner-19531

10/16/2022, 9:56 AM
-v10
will print a lot more information which might give a hint to what's failing
b

billions-rocket-37012

10/18/2022, 7:01 PM
Finally had time to investigate this. Even
-v10
didn't give any clues which key was incorrect. Did a binary search by removing half the configuration at a time and found the offending key with a lot of trial&error
Among the several hundred keys under
aws:endpoints
that I need in my localstack setup, there was
mobileanalytics: <http://localhost:4566>
which probably has been a real thing at some point (since I for sure didn't add any of these manually) but has since been removed
Pretty frustrating experience but now it works at least
e

echoing-dinner-19531

10/18/2022, 8:06 PM
Wait is that
aws:mobileanalytics
or just
mobileanalytics
?
b

billions-rocket-37012

10/18/2022, 8:30 PM
Without
aws:
like all of the other ones under
aws:endpoints
, I guess the provider prefix is only mandatory on the top level keys
e

echoing-dinner-19531

10/18/2022, 9:22 PM
Ah I get you, a subkey of
aws:endpoints
. I'd suggest raising an issue about this at https://github.com/pulumi/pulumi-aws/issues.
205 Views