Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to enable/disable Shared VPC resource #268

Closed
elauqsap opened this issue Mar 26, 2021 · 1 comment · Fixed by #269
Closed

Unable to enable/disable Shared VPC resource #268

elauqsap opened this issue Mar 26, 2021 · 1 comment · Fixed by #269
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work

Comments

@elauqsap
Copy link

I have a Service Account with both roles/compute.xpnAdmin and roles/resourcemanager.projectIamAdmin at folder level in an organization as defined here. I am using this module and the submodule fabric-net-svpc-access to attach service projects to the host project. However, I am getting a permissions error:

Error: googleapi: Error 403: Required 'compute.organizations.enableXpnResource' permission for 'projects/host-project-id'

It seems to be because I am using this module at a folder level and not an org level which is a non-issue for the gcloud beta cli tool:

gcloud beta compute shared-vpc associated-projects add --host-project=host-project-id service-project-id

Am I doing something wrong on the TF side? This wasn't happening a few months ago and from what I can tell the only difference made on our end was migrating from v0.12.6 to v0.13.5.

@bharathkkb bharathkkb added bug Something isn't working P2 high priority issues triaged Scoped and ready for work labels Mar 28, 2021
@bharathkkb
Copy link
Member

Thanks for the report @elauqsap
We will need a similar fix like terraform-google-modules/terraform-google-project-factory#560

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants