Skip to content

Commit

Permalink
Update subnet_flow_logs and subnet_private_access to string from bool…
Browse files Browse the repository at this point in the history
…ean in module, examples, and README.md
  • Loading branch information
Andrey Kumanov committed Sep 25, 2018
1 parent 60875f3 commit 02585cb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module "vpc" {
subnet_name = "subnet-02"
subnet_ip = "10.10.20.0/24"
subnet_region = "us-west1"
subnet_private_access = true
subnet_flow_logs = true
subnet_private_access = "true"
subnet_flow_logs = "true"
},
]
Expand Down Expand Up @@ -73,8 +73,8 @@ The subnets list contains maps, where each object represents a subnet. Each map
| subnet_name | The name of the subnet being created | string | - | yes |
| subnet_ip | The IP and CIDR range of the subnet being created | string | - | yes |
| subnet_region | The region where the subnet will be created | string | - | yes |
| subnet_private_access | Whether this subnet will have private Google access enabled | boolean | false | no |
| subnet_flow_logs | Whether the subnet will record and send flow log data to logging | boolean | false | no |
| subnet_private_access | Whether this subnet will have private Google access enabled | string | false | no |
| subnet_flow_logs | Whether the subnet will record and send flow log data to logging | string | false | no |

## Outputs

Expand Down
20 changes: 10 additions & 10 deletions examples/multi_vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ module "test-vpc-module-01" {
subnet_name = "test-network-01-subnet-01"
subnet_ip = "10.10.10.0/24"
subnet_region = "us-west1"
subnet_private_access = false
subnet_flow_logs = true
subnet_private_access = "false"
subnet_flow_logs = "true"
},
{
subnet_name = "test-network-01-subnet-02"
subnet_ip = "10.10.20.0/24"
subnet_region = "us-west1"
subnet_private_access = false
subnet_flow_logs = true
subnet_private_access = "false"
subnet_flow_logs = "true"
},
{
subnet_name = "test-network-01-subnet-03"
subnet_ip = "10.10.30.0/24"
subnet_region = "us-west1"
subnet_private_access = false
subnet_flow_logs = true
subnet_private_access = "false"
subnet_flow_logs = "true"
},
]

Expand Down Expand Up @@ -76,15 +76,15 @@ module "test-vpc-module-02" {
subnet_name = "test-network-02-subnet-01"
subnet_ip = "10.10.40.0/24"
subnet_region = "us-west1"
subnet_private_access = false
subnet_flow_logs = true
subnet_private_access = "false"
subnet_flow_logs = "true"
},
{
subnet_name = "test-network-02-subnet-02"
subnet_ip = "10.10.50.0/24"
subnet_region = "us-west1"
subnet_private_access = false
subnet_flow_logs = true
subnet_private_access = "false"
subnet_flow_logs = "true"
},
]

Expand Down
4 changes: 2 additions & 2 deletions examples/simple_project/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ module "test-vpc-module" {
subnet_name = "subnet-02"
subnet_ip = "10.10.20.0/24"
subnet_region = "us-west1"
subnet_private_access = true
subnet_flow_logs = true
subnet_private_access = "true"
subnet_flow_logs = "true"
},
]

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ resource "google_compute_subnetwork" "subnetwork" {
name = "${lookup(var.subnets[count.index], "subnet_name")}"
ip_cidr_range = "${lookup(var.subnets[count.index], "subnet_ip")}"
region = "${lookup(var.subnets[count.index], "subnet_region")}"
private_ip_google_access = "${lookup(var.subnets[count.index], "subnet_private_access", false)}"
enable_flow_logs = "${lookup(var.subnets[count.index], "subnet_flow_logs", false)}"
private_ip_google_access = "${lookup(var.subnets[count.index], "subnet_private_access", "false")}"
enable_flow_logs = "${lookup(var.subnets[count.index], "subnet_flow_logs", "false")}"
network = "${google_compute_network.network.name}"
project = "${var.project_id}"

Expand Down

0 comments on commit 02585cb

Please sign in to comment.