limited-rainbow-51650
02/27/2020, 7:43 PMgcloud auth login
I’m authenticated as Organization Administrator
. I want to create a new Project
with a linked ServiceAccount
. At pulumi up
, I get a permission error:
error: Error waiting for creating folder: Error code 7, message: Permission 'resourcemanager.projects.create' denied on parent resource 'organizations/<my_org_number_here>'.
When I test my permissions here, logged in with the same account:
https://cloud.google.com/resource-manager/reference/rest/v1beta1/organizations/testIamPermissions
with:
{
"permissions": [
"resourcemanager.projects.create"
]
}
I get a correct “200 OK”. Where does Pulumi pick up the GCP credentials?stocky-island-3676
02/27/2020, 8:06 PMlimited-rainbow-51650
02/27/2020, 8:08 PMstocky-island-3676
02/27/2020, 8:28 PMlimited-rainbow-51650
02/27/2020, 8:31 PMroles/resourcemanager.projectCreator
role to my account for the time being. It seems that org admin doesn’t have that role.stocky-island-3676
02/27/2020, 8:34 PMI added theAha. Was the https://cloud.google.com/resource-manager/reference/rest/v1beta1/organizations/testIamPermissions “200 OK” before adding that role to your account, as well?role to my account for the time being. It seems that org admin doesn’t have that role.roles/resourcemanager.projectCreator
limited-rainbow-51650
02/27/2020, 8:34 PMstocky-island-3676
02/27/2020, 8:35 PMlimited-rainbow-51650
02/27/2020, 8:37 PMtestIamPermisions
, you pass a list of permissions, and the call only returns the list of permissions you are granted. In the first call, I got {}
😉stocky-island-3676
02/27/2020, 8:44 PM