padok-team / terraform-google-network Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Applying this module on a freshly created Google project fails because the Compute Engine API is disabled.
Could we enable the API from within the module? It would look something like this:
resource "google_project_service" "compute_engine" {
service = "compute.googleapis.com"
disable_on_destroy = false
}
Or, alternatively, could we add the activation of the API to the module's examples as a dependency?
Initializing modules...
There are some problems with the configuration, described below.
The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
╷
│ Error: Experiment has concluded
│
│ on .terraform/modules/blueprint.network.network/versions.tf line 3, in terraform:
│ 3: experiments = [module_variable_optional_attrs]
│
│ Experiment "module_variable_optional_attrs" is no longer available. The final feature corresponding to this experiment differs from the experimental form and is available in the Terraform language from Terraform v1.3.0
│ onwards.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/release-please.yml
google-github-actions/release-please-action v3
.github/workflows/terraform-quality.yml
padok-team/github-workflows v1
.github/workflows/terratest.yml
actions/checkout v4
google-github-actions/auth v2
actions/setup-go v3
main.tf
terraform-google-modules/network/google 7.1.0
versions.tf
google ~> 4.49
hashicorp/terraform >= 1.3
.tflint.hcl
terraform-linters/tflint-ruleset-google 0.24.0
The module's current provider resource requirements are as follows:
required_providers {
google = {
source = "hashicorp/google"
version = ">= 3.90"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 3.90"
}
}
These constraints are too flexible in my opinion. Terraform gave me no warning when using version 4.12 of the providers.
There is no output for VPC access connector, it's indispensible to export it in order to use it with other resources such as cloudfunctions.
╷
│ Error: project: required field is not set
│
│ with module.blueprint.module.network.module.network.google_compute_network.this,
│ on ../../modules/base/terrafrom-google-network/main.tf line 10, in resource "google_compute_network" "this":
│ 10: resource "google_compute_network" "this" {
│
╵
Maybe, you should indicate somewhere that a provider is required
Some clients have to open a lot of connections per VM, so we should allow setting the field min_ports_per_vm on the resource google_compute_router_nat
.
Right now we set the min_ports_per_vm to 0, but when we apply it sets it to 64, so putting 0 is confusing.
It could be great to allow dynamic port mapping as well instead of endpoint_independent_mapping.
The module should output vpc connectors (or at least their name), so we can use them, for instance in a cloud run setup.
The interface of this output should be discussed since the name are generated through a local
I used this module in a project to bootstrap a new network stack and I wanted a static IP for our NAT Gateway to be able to whitelist calls from Cloud Functions using the VPC Access Connector.
Let's discuss about naming for this feature here : #16
terraform-google-network/variables.tf
Line 69 in 9591240
Could you please remove the dot in order to have "ERRORS_ONLY" ? I got the following error using your module
Error: expected log_config.0.filter to be one of [ERRORS_ONLY TRANSLATIONS_ONLY ALL], got ERRORS_ONLY.
Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.