https://pulumi.com logo
#google-cloud
Title
# google-cloud
d

damp-elephant-82829

09/18/2020, 6:44 PM
get_project_service_account on the storage module is not working anymore?
m

microscopic-pilot-97530

09/18/2020, 6:54 PM
What versions of
pulumi
and
pulumi_gcp
PyPi packages are you using?
d

damp-elephant-82829

09/18/2020, 7:20 PM
2.10.1 for pulumi
and pulumi_gcp let me see
3.21.0
m

microscopic-pilot-97530

09/18/2020, 7:39 PM
Does it work for the latest
pulumi_gcp
3.24.0? I just tried
pulumi
2.10.1 and
pulumi_gcp
3.24.0 and it’s working for me.
d

damp-elephant-82829

09/19/2020, 8:16 AM
let me try
it is still failing
Step #12 - “Pulumi Create Stack”: exec(code, run_globals) Step #12 - “Pulumi Create Stack”: File “./__main__.py”, line 88, in <module> Step #12 - “Pulumi Create Stack”: opts=ResourceOptions(depends_on=[ephemeral_project.project, registry_access]), Step #12 - “Pulumi Create Stack”: File “./barchart_service.py”, line 72, in init Step #12 - “Pulumi Create Stack”: parent=self, Step #12 - “Pulumi Create Stack”: File “./pulumi_utils/storage/bucket_with_notification.py”, line 57, in init Step #12 - “Pulumi Create Stack”: opts=opts, Step #12 - “Pulumi Create Stack”: File “/usr/local/lib/python3.7/site-packages/pulumi_gcp/storage/get_project_service_account.py”, line 96, in get_project_service_account Step #12 - “Pulumi Create Stack”: email_address=ret.email_address, Step #12 - “Pulumi Create Stack”: AttributeError: ‘dict’ object has no attribute ‘email_address’ Step #12 - “Pulumi Create Stack”: error: an unhandled error occurred: Program exited with non-zero exit code: 1
what sort of environment variables or changes I should do to get more logging? TF_TRACE=DEBUG wasn’t working for me last time
m

microscopic-pilot-97530

09/19/2020, 5:01 PM
What does the call to
get_project_service_account
look like? Are you passing any arguments?
d

damp-elephant-82829

09/20/2020, 8:41 PM
project_service_account = storage.get_project_service_account( project=args.gcp_project.new_project_id, opts=opts, )
it might be that the API is answering with a code or error that the terraform provider or pulumi are not itnerpreting correctly
if you have any hint on how to get more verbose logging I will follow up
2 Views