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

fix: Add shared_vpc features to root module back #446

Merged
merged 10 commits into from
Dec 11, 2020
Merged

fix: Add shared_vpc features to root module back #446

merged 10 commits into from
Dec 11, 2020

Conversation

askoriy
Copy link
Contributor

@askoriy askoriy commented Aug 18, 2020

This PR fixes #445

morgante
morgante previously approved these changes Aug 18, 2020
@askoriy askoriy mentioned this pull request Aug 18, 2020
@askoriy
Copy link
Contributor Author

askoriy commented Sep 2, 2020

@morgante could you point to build error details to finally fix it and merge this PR?

main.tf Show resolved Hide resolved
@askoriy
Copy link
Contributor Author

askoriy commented Oct 7, 2020

@morgante or @bharathkkb could you point me to error details?

@askoriy askoriy requested a review from bharathkkb October 7, 2020 11:45
@bharathkkb
Copy link
Member

@askoriy
PFA

       Error: Invalid for_each argument
       
         on ../../../modules/shared_vpc_access/main.tf line 64, in resource "google_project_iam_member" "service_shared_vpc_user":
         64:   for_each = (length(var.shared_vpc_subnets) == 0) && (var.host_project_id != "") ? local.active_apis : []
       
       The "for_each" value depends on resource attributes that cannot be determined
       until apply, so Terraform cannot predict how many instances will be created.
       To work around this, use the -target argument to first apply only the
       resources that the for_each depends on.

@bharathkkb
Copy link
Member

@morgante as discussed here #445 (comment) are we planning on adding this back to the root module or updating docs to reflect usage of shared_vpc submodule?

@morgante
Copy link
Contributor

morgante commented Oct 8, 2020

@morgante as discussed here #445 (comment) are we planning on adding this back to the root module or updating docs to reflect usage of shared_vpc submodule?

So long as we can get it to work properly, we should add it back in this release. If we want to remove it totally, that should be clearly communicated in the next major release.

@bharathkkb bharathkkb requested a review from a team as a code owner October 21, 2020 14:55
@morgante
Copy link
Contributor

/gcbbuild

@des-esseintes
Copy link

hey @askoriy do you still think this stuff has to be merged or maybe you found some workaround to make life easier with the existing functionality?

@bharathkkb bharathkkb requested a review from morgante December 11, 2020 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shared_vpc features is broken (or removed) from root module
4 participants