gifted-shoe-94703
02/24/2025, 9:26 AMpulumi preview --import-file
command to get the JSON, and substitute in the IDs for the existing environment. This has been far from a smooth experience so far though.
I expect to have many more problems, but right now the main one is importing GCP Project IAM members. No matter what syntax I use, it cannot find the resource.
I've tried a syntax like (among others) which seems to more closely match the import docs for this resource, but no dice:
pulumi import gcp:projects/iAMMember:IAMMember default "projects/{project-id}/iam/serviceAccounts/{email} roles/storage.objectViewer"
I even looked at the state YAML file for the successfully deployed environment, and I see an ID for these resources which looks like:
{project-id}/roles/storage.objectViewer/serviceAccount:email
However, even using that exact ID - self-reported by Pulumi - it doesn't work (which is profoundly confusing).
If anyone has any ideas/clues as to how I can import these resources, then please let me know. I'm at my wits end here 😅late-jordan-34904
02/25/2025, 5:21 PMadorable-house-61348
02/25/2025, 5:49 PM"{{project_id}} roles/viewer user:<mailto:foo@example.com|foo@example.com>"
late-jordan-34904
02/25/2025, 5:50 PMpulumi import gcp:projects/iAMMember:IAMMember pulumiName "GCP_PROJECT_ID ROLE_NAME serviceAccount:SERVICE_ACCOUNT_EMAIL"
late-jordan-34904
02/25/2025, 5:50 PMadorable-house-61348
02/25/2025, 5:51 PMadorable-house-61348
02/25/2025, 5:55 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by