-
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
Create project as host project (shared_vpc_host) #464
Create project as host project (shared_vpc_host) #464
Conversation
…ve configuration to do it via VPC creation
… done via VPC anymore. Also, renames variable shared_vpc_enabled to enable_shared_vpc_service_project
…_service_project. Also, adds the new variable enable_shared_vpc_host_project
…vpc_host). Also, updates the logic to set enable_shared_vpc_service_project and enable_shared_vpc_host_project
The error is here:
|
I don’t think it is related to my changes... do you?
… On 1 Oct 2020, at 16:56, Morgante Pell ***@***.***> wrote:
The error is here:
terraform_validate ./test/fixtures/full
Error: Unsupported argument
on .terraform/modules/vpc/main.tf line 58, in resource "google_compute_subnetwork" "subnetwork":
58: enable_flow_logs = lookup(var.subnets[count.index], "subnet_flow_logs", "false")
An argument named "enable_flow_logs" is not expected here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
What I've found is that enable_flow_logs was deprecated, we should use log_config instead. Trying to match the same version that is working for me. |
@morgante for some odd reason the google provider version pulled by my terraform execution end up with a different version than in the CI environment. I've deleted the terraform cache and confirmed that it pulled out the version 3.40 again, so I've created the required version config for the provider in fixtures/full/versions.tf and it worked. |
yay! |
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.
When creating the host project you should not need a shared_vpc
input variable with the name.
@morgante okay. you're right, but I think we should rename shared_vpc_enabled on the next major release as we will do with shared_vpc, do you agree? |
Co-authored-by: Morgante Pell <morgante.pell@morgante.net>
No it's not. There is no reason to set |
yeah... I've removed this comment. Please, see my last comment |
Yep. |
Please, see related PR. |
Hi @morgante @bharathkkb ,
After a lot of discussions, I'm opening a new PR with a clean branch. I hope all is correct now.