When using pulumi.Import, against a existing resou...
# general
a
When using pulumi.Import, against a existing resource, I get a diff
"[secret]" => [secret]
which results in warning:
inputs to import do not match the existing resource: [config["password"]]; importing this resource will fail
If i provide the config["password"] with pulumi.String instead of a secret, theres no diff, and no import-warning. Is this a misstake in the provider? In that case what should I change in the provider
e
are you on the latest version of pulumi? I thought we got rid of that warning entirely, but yes this is probably a provider diff bug. Does --show-secrets show you what the change is?
a
---show-secrets dont seem to work actually.
Copy code
❯ pulumi version
v3.162.0
with --show-secrets=true it dont make any difference
<http://github.com/pulumi/pulumi/sdk/v3|github.com/pulumi/pulumi/sdk/v3> v3.76.0
e
Can you update your CLI? 162 is a couple of months old, I think a few things in this area have been fixed over that time.
a
Copy code
❯ pulumi version
v3.180.0
now, but it still dont show secrets, but i dont get the "importing this resource will fail" message anymore
e
hmm I thought we'd fixed show-secrets for preview, but at least the warning is gone