Comments (6)
Was this bug already fixed?
from terraform-google-cloud-nat.
I doubt that.
Works for me, when
module "cloud-nat" {
source = "terraform-google-modules/cloud-nat/google"
project_id = var.projectId
region = var.regionLong
network = "vpc-0"
create_router = true
router = "nat-router-0"
name = "nat-gateway-0"
nat_ips = google_compute_address.address.*.self_link
}
from terraform-google-cloud-nat.
agree and the condition doesn't make sense at all
if someone were to use the value
nat_ip_allocate_option =true
the condition breaks
nat_ip_allocate_option = var.nat_ip_allocate_option ? var.nat_ip_allocate_option : local.default_nat_ip_allocate_option
would render to
nat_ip_allocate_option = true
instead of nat_ip_allocate_option=MANUAL_ONLY
from terraform-google-cloud-nat.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
from terraform-google-cloud-nat.
Got the same:
When
nat_ip_allocate_option = "AUTO_ONLY"
getting
│ Error: Incorrect condition type
│
│ on .terraform/modules/cloud-nat/main.tf line 29, in locals:
│ 29: nat_ip_allocate_option = var.nat_ip_allocate_option ? var.nat_ip_allocate_option : local.default_nat_ip_allocate_option
│ ├────────────────
│ │ var.nat_ip_allocate_option is "AUTO_ONLY"
│
│ The condition expression must be of type bool.
and when setting it to
nat_ip_allocate_option = true
getting
│ Error: expected nat_ip_allocate_option to be one of [MANUAL_ONLY AUTO_ONLY], got true
│
│ with module.cloud-nat.google_compute_router_nat.main,
│ on .terraform/modules/cloud-nat/main.tf line 51, in resource "google_compute_router_nat" "main":
│ 51: nat_ip_allocate_option = local.nat_ip_allocate_option
Either this parameter is not needed, or should be fixed. :)
from terraform-google-cloud-nat.
Indeed, without nat_ip_allocate_option
works.
from terraform-google-cloud-nat.
Related Issues (20)
- Endpoint-Independent Mapping default value should be false (not null) HOT 3
- max_ports_per_vm with dynamic allocation HOT 1
- Support for Terraform version 0.13.0 for vpc, cloud-router and cloud-nat modules HOT 5
- Cannot determine region.
- enable_endpoint_independent_mapping attribute not supported by module HOT 3
- log_config_enable doesn't have effect on v1.3.0 HOT 5
- compute_router_nat subnetwork always changes for LIST_OF_SUBNETWORKS HOT 7
- Cloud Nat Module always changed value to default when tcp_established_idle_timeout_sec was set as number HOT 1
- new release / version tag after lint-failing file removed HOT 3
- How to create a NAT with static IP? HOT 1
- gke: failed to execute portforward in network HOT 1
- Support Dynamic Port Allocation HOT 17
- enable the option nat_ip_allocate_option= "MANUAL_ONLY" get error Incorrect condition type HOT 1
- support router tcp-time-wait-timeout setting HOT 5
- Unable To Use Google Compute Address For Cloud NAT HOT 1
- max_ports_per_vm not taken into account HOT 1
- var.nat_ip_allocate_option has to be set to false to be able to use MANUAL_ONLY HOT 1
- Dependency Dashboard
- Support for Dynamic Port Allocation HOT 3
- Support Max ports per VM setting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-google-cloud-nat.