Open GeoffMillerAZ opened 1 year ago
From: https://github.com/pulumi/pulumi/issues/14479
Same is true for
gcp:serviceAccount:IAMMember
,gcp:storage:BucketIAMMember
andgcp:spanner:DatabaseIAMMember
, but my guess is that it's true for all of them.
What happened?
I am trying to import resources from an existing Terraform State file.
pulumi import --from terraform terraform.tfstate
error:
gcp:projects:IAMMember (gke-monitoring): error: Preview failed: importing project-name-here/roles/monitoring.viewer/serviceAccount:default-gke@project-name-here.iam.gserviceaccount.com: Wrong number of parts to Member id [project-name-here/roles/monitoring.viewer/serviceAccount:default-gke@project-name-here.iam.gserviceaccount.com]; expected 'resource_name role member [condition_title]'.
Example
I apologize for my example to reproduce and state I'm sharing not being consistent. I don't have a good setup yet for gcp and I'm new to gcp. I'll update if I get a better example.
Code similar to this:
Terraform state file similar to this:
error:
gcp:projects:IAMMember (gke-monitoring): error: Preview failed: importing project-name-here/roles/monitoring.viewer/serviceAccount:default-gke@project-name-here.iam.gserviceaccount.com: Wrong number of parts to Member id [project-name-here/roles/monitoring.viewer/serviceAccount:default-gke@project-name-here.iam.gserviceaccount.com]; expected 'resource_name role member [condition_title]'.
Output of
pulumi about
Additional context
related issues:
43
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).