-
Notifications
You must be signed in to change notification settings - Fork 543
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
empty shared_vpc issue when using shared_vpc module #480
Comments
@des-esseintes are you trying to create a regular project? |
not sure what's the definition of 'regular' here :) |
@des-esseintes apologies if I was not clear, what I meant was were you trying to create a project that is not a SVPC host/service project?
|
oh now i understand so let me explain. we had a module, which was using project factory as a submodule. we were on version 7.1. then i started migrating to 9.1 and found out that shared_vpcs no longer exist. after reading the comments in the ticket i mentioned in the topic start, i just changed module to shared_vpcs. that was ok for the projects with shared vpc defined, but started to fail for projects with an empty value. i'm trying to find a better workaround rather than 2 separate modules, one of which would be using project factory and another one - shared vpcs submodule. |
@des-esseintes got it, we are trying to converge with #446 |
oh, thanks! i'll keep an eye on this one :) |
As this one seems to be merged now 0a6b9b9, I think I'm going to test the feature when the next version of the module comes out and report the results here |
@des-esseintes you can also test the release branch now if you are interested. Closing this issue now, feel free to reopen if issue persists. source = "github.com/terraform-google-modules/terraform-google-project-factory?ref=release-v10.0.0" |
fixed by #446 |
working as expected! |
Hey team,
I've faced the issue described here: #445 (comment) by @askoriy
Basically shared_vpc module produces errors when shared_vpc is set to an empty value, it's attempting to create resources it should not, e.g. plan looks like:
this one is missing a required parameter
host_project
.Not sure how to actually fix this tbh, I've checked the code and those resources should be omitted if shared_vpc == ""
But I've not spent too much time investigating this, tbh.
The text was updated successfully, but these errors were encountered: