Open solomonshorser opened 4 months ago
Hi @solomonshorser. My best guess is that what's happening is that the preview is broken because the import doesn't run during preview and returns some malformed outputs rather than unknowns like it should. You could test this by running pulumi up --skip-preview
to force it to skip ahead to the full update (as long as you are comfortable with running an actual update in this environment).
Like I mentioned on https://github.com/pulumi/pulumi-google-native/issues/983 I can't really promise we'll have time dig in here soon, so you may want to try moving to use pulumi-gcp instead if you are able to.
What happened?
I am trying to import an existing ServiceAccount for use in our stack. Since I know that for this stack, the SA will often exist before I use Pulumi to create any infrastructure, I tried to import the SA in code. Unfortunately, it returns an error:
Example
Code that caused this error:
...I did at one point try using
native.iam.v1.getServiceAccountOuptut
to get an existing service account, but the problem is I need the service account to be a proper Pulumi Resource -getServiceAccountOuptut
returns an interface that has the values I need but I can't use that independsOn
for other resources that depend on the service account.Output of
pulumi about
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).