-
Notifications
You must be signed in to change notification settings - Fork 547
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
Can't create project with Shared VPC in other project #362
Comments
Sorry for the issue, looks like the issue is with:
As a workaround, could you try commenting out the project and creating the subnet first then creating the project? As a long term fix, we should add a
|
The workaround worked. Thanks! |
@morgante I've encountered this problem today for the second time. Last time I've worked around it by doing a targeted apply (as you suggested here), but this time this looked into the code and got it working by removing |
Hi @adrian-gierakowski - I am currently looking at a fix for this now and have discussed the validation with @morgante . At this point in time we are looking to remove that code as it complicates the module and only really has the benefit of surfacing a failure that would occur anyway a little earlier |
…enerated list of subnets
…enerated list of subnets
+1 I have the same problem when setting shared_vpc from another project: module "project_hmt_prod_cluster_service" { This line is the problem:shared_vpc = module.project_hmt_prod_cluster_host_prod.project_id I guess |
@mattcary Your use case can be solved by using the shared_vpc submodule: module "project_hmt_prod_cluster_service" {
source = "terraform-google-modules/project-factory/google//modules/shared_vpc"
version = "~> 7.0.0"
} Can you give that a try? |
That works! Thanks for the tip. |
My code:
As we can see I'm using the
shared_vpc
submodule as mentioned in other issues but the erros are way more enormous.The text was updated successfully, but these errors were encountered: