-
Notifications
You must be signed in to change notification settings - Fork 545
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
fix: support passing service project number to shared_vpc_access to be tf 0.13 compatible #500
Conversation
@umairidris Would it be possible to use implicitly dependency to solve this instead? I'd rather not be adding more |
We output |
@morgante implicit dependencies don't work as intended due to hashicorp/terraform#26857. @bharathkkb yes that was one option, but we will need to add a required var for project number which will be a breaking change on shared_vpc_access. Is that ok? |
Wouldn't an optional variable be sufficient? |
Yes, that would work too though we would have two different paths (one with data source and one without). I can do that for now and we can remove the data source in a future major version. |
Or not...
|
I think it's okay to have a breaking change with the upcoming v10.0 for |
This submodule is actually used directly frequently as well, so I'd definitely like to avoid a breaking change. More generally, I'd like to avoid forcing customers to think about project number at all. It's a confusing implementation detail of GCP and redundant with project ID. How about we make a |
If a v10 release is coming soon I would prefer to remove the data source entirely. It seems Terraform is pushing for data and provider blocks to be in the user's control more and more. In the meantime I have added the extra var. |
I'm strongly against any change which forces users to provide their project number. This module is scattered all over and, frankly, is simply shifting the burden of confusion to the user's config and reducing the value of the module. I also think this error is one we're unlikely to encounter outside project factory, so I'd rather take on a bit more complexity here in exchange for easier interfaces outside the module. |
That's a fair point, chances of this happening outside of PF are lower. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/cc @morgante
@morgante does this look good to you? |
Fix #499