-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add terraformer output to iac directory
[#3365]
- Loading branch information
Showing
133 changed files
with
138,330 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.terraform/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
provider "google" { | ||
project = "cal-itp-data-infra-staging" | ||
} | ||
|
||
terraform { | ||
required_providers { | ||
google = { | ||
version = "~> 6.19.0" | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
iac/cal-itp-data-infra-staging/disks/us-west1/terraform.tfstate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": 3, | ||
"terraform_version": "0.12.31", | ||
"serial": 1, | ||
"lineage": "5fbfd515-ae56-2808-6b6f-4f2f5dc59232", | ||
"modules": [ | ||
{ | ||
"path": [ | ||
"root" | ||
], | ||
"outputs": {}, | ||
"resources": {}, | ||
"depends_on": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
provider "google" { | ||
project = "cal-itp-data-infra-staging" | ||
} | ||
|
||
terraform { | ||
required_providers { | ||
google = { | ||
version = "~> 6.19.0" | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
iac/cal-itp-data-infra-staging/dns/us-west1/terraform.tfstate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": 3, | ||
"terraform_version": "0.12.31", | ||
"serial": 1, | ||
"lineage": "cd5526d7-ad97-9396-0256-ca886c90fe2b", | ||
"modules": [ | ||
{ | ||
"path": [ | ||
"root" | ||
], | ||
"outputs": {}, | ||
"resources": {}, | ||
"depends_on": [] | ||
} | ||
] | ||
} |
71 changes: 71 additions & 0 deletions
71
iac/cal-itp-data-infra-staging/firewall/us-west1/compute_firewall.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
resource "google_compute_firewall" "tfer--default-allow-icmp" { | ||
allow { | ||
protocol = "icmp" | ||
} | ||
|
||
description = "Allow ICMP from anywhere" | ||
direction = "INGRESS" | ||
disabled = "false" | ||
name = "default-allow-icmp" | ||
network = "${data.terraform_remote_state.networks.outputs.google_compute_network_tfer--default_self_link}" | ||
priority = "65534" | ||
project = "cal-itp-data-infra-staging" | ||
source_ranges = ["0.0.0.0/0"] | ||
} | ||
|
||
resource "google_compute_firewall" "tfer--default-allow-internal" { | ||
allow { | ||
ports = ["0-65535"] | ||
protocol = "tcp" | ||
} | ||
|
||
allow { | ||
ports = ["0-65535"] | ||
protocol = "udp" | ||
} | ||
|
||
allow { | ||
protocol = "icmp" | ||
} | ||
|
||
description = "Allow internal traffic on the default network" | ||
direction = "INGRESS" | ||
disabled = "false" | ||
name = "default-allow-internal" | ||
network = "${data.terraform_remote_state.networks.outputs.google_compute_network_tfer--default_self_link}" | ||
priority = "65534" | ||
project = "cal-itp-data-infra-staging" | ||
source_ranges = ["10.128.0.0/9"] | ||
} | ||
|
||
resource "google_compute_firewall" "tfer--default-allow-rdp" { | ||
allow { | ||
ports = ["3389"] | ||
protocol = "tcp" | ||
} | ||
|
||
description = "Allow RDP from anywhere" | ||
direction = "INGRESS" | ||
disabled = "false" | ||
name = "default-allow-rdp" | ||
network = "${data.terraform_remote_state.networks.outputs.google_compute_network_tfer--default_self_link}" | ||
priority = "65534" | ||
project = "cal-itp-data-infra-staging" | ||
source_ranges = ["0.0.0.0/0"] | ||
} | ||
|
||
resource "google_compute_firewall" "tfer--default-allow-ssh" { | ||
allow { | ||
ports = ["22"] | ||
protocol = "tcp" | ||
} | ||
|
||
description = "Allow SSH from anywhere" | ||
direction = "INGRESS" | ||
disabled = "false" | ||
name = "default-allow-ssh" | ||
network = "${data.terraform_remote_state.networks.outputs.google_compute_network_tfer--default_self_link}" | ||
priority = "65534" | ||
project = "cal-itp-data-infra-staging" | ||
source_ranges = ["0.0.0.0/0"] | ||
} |
15 changes: 15 additions & 0 deletions
15
iac/cal-itp-data-infra-staging/firewall/us-west1/outputs.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
output "google_compute_firewall_tfer--default-allow-icmp_self_link" { | ||
value = "${google_compute_firewall.tfer--default-allow-icmp.self_link}" | ||
} | ||
|
||
output "google_compute_firewall_tfer--default-allow-internal_self_link" { | ||
value = "${google_compute_firewall.tfer--default-allow-internal.self_link}" | ||
} | ||
|
||
output "google_compute_firewall_tfer--default-allow-rdp_self_link" { | ||
value = "${google_compute_firewall.tfer--default-allow-rdp.self_link}" | ||
} | ||
|
||
output "google_compute_firewall_tfer--default-allow-ssh_self_link" { | ||
value = "${google_compute_firewall.tfer--default-allow-ssh.self_link}" | ||
} |
11 changes: 11 additions & 0 deletions
11
iac/cal-itp-data-infra-staging/firewall/us-west1/provider.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
provider "google" { | ||
project = "cal-itp-data-infra-staging" | ||
} | ||
|
||
terraform { | ||
required_providers { | ||
google = { | ||
version = "~> 6.19.0" | ||
} | ||
} | ||
} |
194 changes: 194 additions & 0 deletions
194
iac/cal-itp-data-infra-staging/firewall/us-west1/terraform.tfstate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
{ | ||
"version": 3, | ||
"terraform_version": "0.12.31", | ||
"serial": 1, | ||
"lineage": "98f3032c-3d1b-1f49-230c-0622f1d515ea", | ||
"modules": [ | ||
{ | ||
"path": [ | ||
"root" | ||
], | ||
"outputs": { | ||
"google_compute_firewall_tfer--default-allow-icmp_self_link": { | ||
"sensitive": false, | ||
"type": "string", | ||
"value": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/firewalls/default-allow-icmp" | ||
}, | ||
"google_compute_firewall_tfer--default-allow-internal_self_link": { | ||
"sensitive": false, | ||
"type": "string", | ||
"value": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/firewalls/default-allow-internal" | ||
}, | ||
"google_compute_firewall_tfer--default-allow-rdp_self_link": { | ||
"sensitive": false, | ||
"type": "string", | ||
"value": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/firewalls/default-allow-rdp" | ||
}, | ||
"google_compute_firewall_tfer--default-allow-ssh_self_link": { | ||
"sensitive": false, | ||
"type": "string", | ||
"value": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/firewalls/default-allow-ssh" | ||
} | ||
}, | ||
"resources": { | ||
"google_compute_firewall.tfer--default-allow-icmp": { | ||
"type": "google_compute_firewall", | ||
"depends_on": [], | ||
"primary": { | ||
"id": "default-allow-icmp", | ||
"attributes": { | ||
"allow.#": "1", | ||
"allow.0.ports.#": "0", | ||
"allow.0.protocol": "icmp", | ||
"creation_timestamp": "2021-11-03T20:50:03.637-07:00", | ||
"deny.#": "0", | ||
"description": "Allow ICMP from anywhere", | ||
"destination_ranges.#": "0", | ||
"direction": "INGRESS", | ||
"disabled": "false", | ||
"id": "default-allow-icmp", | ||
"log_config.#": "0", | ||
"name": "default-allow-icmp", | ||
"network": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/networks/default", | ||
"priority": "65534", | ||
"project": "cal-itp-data-infra-staging", | ||
"self_link": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/firewalls/default-allow-icmp", | ||
"source_ranges.#": "1", | ||
"source_ranges.0": "0.0.0.0/0", | ||
"source_service_accounts.#": "0", | ||
"source_tags.#": "0", | ||
"target_service_accounts.#": "0", | ||
"target_tags.#": "0" | ||
}, | ||
"meta": { | ||
"schema_version": 1 | ||
}, | ||
"tainted": false | ||
}, | ||
"deposed": [], | ||
"provider": "provider.google" | ||
}, | ||
"google_compute_firewall.tfer--default-allow-internal": { | ||
"type": "google_compute_firewall", | ||
"depends_on": [], | ||
"primary": { | ||
"id": "default-allow-internal", | ||
"attributes": { | ||
"allow.#": "3", | ||
"allow.0.ports.#": "1", | ||
"allow.0.ports.0": "0-65535", | ||
"allow.0.protocol": "tcp", | ||
"allow.1.ports.#": "1", | ||
"allow.1.ports.0": "0-65535", | ||
"allow.1.protocol": "udp", | ||
"allow.2.ports.#": "0", | ||
"allow.2.protocol": "icmp", | ||
"creation_timestamp": "2021-11-03T20:50:03.572-07:00", | ||
"deny.#": "0", | ||
"description": "Allow internal traffic on the default network", | ||
"destination_ranges.#": "0", | ||
"direction": "INGRESS", | ||
"disabled": "false", | ||
"id": "default-allow-internal", | ||
"log_config.#": "0", | ||
"name": "default-allow-internal", | ||
"network": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/networks/default", | ||
"priority": "65534", | ||
"project": "cal-itp-data-infra-staging", | ||
"self_link": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/firewalls/default-allow-internal", | ||
"source_ranges.#": "1", | ||
"source_ranges.0": "10.128.0.0/9", | ||
"source_service_accounts.#": "0", | ||
"source_tags.#": "0", | ||
"target_service_accounts.#": "0", | ||
"target_tags.#": "0" | ||
}, | ||
"meta": { | ||
"schema_version": 1 | ||
}, | ||
"tainted": false | ||
}, | ||
"deposed": [], | ||
"provider": "provider.google" | ||
}, | ||
"google_compute_firewall.tfer--default-allow-rdp": { | ||
"type": "google_compute_firewall", | ||
"depends_on": [], | ||
"primary": { | ||
"id": "default-allow-rdp", | ||
"attributes": { | ||
"allow.#": "1", | ||
"allow.0.ports.#": "1", | ||
"allow.0.ports.0": "3389", | ||
"allow.0.protocol": "tcp", | ||
"creation_timestamp": "2021-11-03T20:50:03.615-07:00", | ||
"deny.#": "0", | ||
"description": "Allow RDP from anywhere", | ||
"destination_ranges.#": "0", | ||
"direction": "INGRESS", | ||
"disabled": "false", | ||
"id": "default-allow-rdp", | ||
"log_config.#": "0", | ||
"name": "default-allow-rdp", | ||
"network": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/networks/default", | ||
"priority": "65534", | ||
"project": "cal-itp-data-infra-staging", | ||
"self_link": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/firewalls/default-allow-rdp", | ||
"source_ranges.#": "1", | ||
"source_ranges.0": "0.0.0.0/0", | ||
"source_service_accounts.#": "0", | ||
"source_tags.#": "0", | ||
"target_service_accounts.#": "0", | ||
"target_tags.#": "0" | ||
}, | ||
"meta": { | ||
"schema_version": 1 | ||
}, | ||
"tainted": false | ||
}, | ||
"deposed": [], | ||
"provider": "provider.google" | ||
}, | ||
"google_compute_firewall.tfer--default-allow-ssh": { | ||
"type": "google_compute_firewall", | ||
"depends_on": [], | ||
"primary": { | ||
"id": "default-allow-ssh", | ||
"attributes": { | ||
"allow.#": "1", | ||
"allow.0.ports.#": "1", | ||
"allow.0.ports.0": "22", | ||
"allow.0.protocol": "tcp", | ||
"creation_timestamp": "2021-11-03T20:50:03.594-07:00", | ||
"deny.#": "0", | ||
"description": "Allow SSH from anywhere", | ||
"destination_ranges.#": "0", | ||
"direction": "INGRESS", | ||
"disabled": "false", | ||
"id": "default-allow-ssh", | ||
"log_config.#": "0", | ||
"name": "default-allow-ssh", | ||
"network": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/networks/default", | ||
"priority": "65534", | ||
"project": "cal-itp-data-infra-staging", | ||
"self_link": "https://www.googleapis.com/compute/v1/projects/cal-itp-data-infra-staging/global/firewalls/default-allow-ssh", | ||
"source_ranges.#": "1", | ||
"source_ranges.0": "0.0.0.0/0", | ||
"source_service_accounts.#": "0", | ||
"source_tags.#": "0", | ||
"target_service_accounts.#": "0", | ||
"target_tags.#": "0" | ||
}, | ||
"meta": { | ||
"schema_version": 1 | ||
}, | ||
"tainted": false | ||
}, | ||
"deposed": [], | ||
"provider": "provider.google" | ||
} | ||
}, | ||
"depends_on": [] | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
iac/cal-itp-data-infra-staging/firewall/us-west1/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
data "terraform_remote_state" "networks" { | ||
backend = "local" | ||
|
||
config = { | ||
path = "../../../../../generated/google/cal-itp-data-infra-staging/networks/us-west1/terraform.tfstate" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
iac/cal-itp-data-infra-staging/forwardingRules/us-west1/provider.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
provider "google" { | ||
project = "cal-itp-data-infra-staging" | ||
} | ||
|
||
terraform { | ||
required_providers { | ||
google = { | ||
version = "~> 6.19.0" | ||
} | ||
} | ||
} |
Oops, something went wrong.