I expected the state to be imported properly with the serviceAccountId property. If necessary, the generated code should include the serviceAccountId property as well.
Actual Behavior
I received the following warning when importing:
warning: One or more imported inputs failed to validate. This is almost certainly a bug in the `gcp` provider. The import will still proceed, but you will need to edit the generated code after copying it into your program.
warning: gcp:serviceAccount/key:Key resource 'KEY-NAME' has a problem: Missing required argument: The argument "service_account_id" is required, but no definition was found.. Examine values at 'Key.ServiceAccountId'.
There is a serviceAccountId property, but it's empty.
Output of pulumi about
CLI
Version 3.41.1
Go Version go1.19.1
Go Compiler gc
Plugins
NAME VERSION
gcp 6.39.0
nodejs unknown
Host
OS ubuntu
Version 20.04
Arch x86_64
Dependencies:
NAME VERSION
@pulumi/gcp 6.39.0
@pulumi/pulumi 3.40.2
@types/node 18.7.23
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).
What happened?
Importing a
gcp.serviceAccount.Key
resource is missing theserviceAccountId
field in the generated state and code.Steps to reproduce
Import a
gcp.serviceAccount.Key
resource:pulumi import -f import.json
import.json
:Expected Behavior
I expected the state to be imported properly with the
serviceAccountId
property. If necessary, the generated code should include theserviceAccountId
property as well.Actual Behavior
I received the following warning when importing:
Generated state:
There is no
serviceAccountId
property in the state.Generated Typescript code:
There is a
serviceAccountId
property, but it's empty.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).