better-umbrella-26052
08/18/2023, 7:44 PMsa = gcp.service_account.Account("sa",
account_id="my-service-account",
display_name="A service account that only Jane can use")
admin_account_iam = gcp.service_account.IAMBinding("admin-account-iam",
service_account_id=sa.name,
role="roles/iam.serviceAccountUser",
members=["user:jane@example.com"])
But similar code gives this basic error:
pulumi:pulumi:Stack (x-vpc-dev):
error: Program failed with an unhandled exception:
Traceback (most recent call last):
File "C:\infra\cloud\gcp\mdcm_vpc_twingate\__main__.py", line 200, in <module>
iam_binding1 = service_account.IAMBinding(
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Account' object has no attribute 'IAMBinding'
No 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