Fix: align stage-2-e-nva-bgp to the latest APIs
This commit is contained in:
parent
927c04a6d4
commit
50a449965f
|
@ -488,7 +488,7 @@ DNS configurations are centralised in the `dns-*.tf` files. Spokes delegate DNS
|
||||||
| [main.tf](./main.tf) | Networking folder and hierarchical policy. | <code>folder</code> · <code>net-firewall-policy</code> | |
|
| [main.tf](./main.tf) | Networking folder and hierarchical policy. | <code>folder</code> · <code>net-firewall-policy</code> | |
|
||||||
| [monitoring-vpn-onprem.tf](./monitoring-vpn-onprem.tf) | VPN monitoring alerts. | | <code>google_monitoring_alert_policy</code> |
|
| [monitoring-vpn-onprem.tf](./monitoring-vpn-onprem.tf) | VPN monitoring alerts. | | <code>google_monitoring_alert_policy</code> |
|
||||||
| [monitoring.tf](./monitoring.tf) | Network monitoring dashboards. | | <code>google_monitoring_dashboard</code> |
|
| [monitoring.tf](./monitoring.tf) | Network monitoring dashboards. | | <code>google_monitoring_dashboard</code> |
|
||||||
| [ncc.tf](./ncc.tf) | None | <code>ncc-spoke-ra</code> | |
|
| [ncc.tf](./ncc.tf) | None | <code>ncc-spoke-ra</code> | <code>google_network_connectivity_hub</code> |
|
||||||
| [nva.tf](./nva.tf) | None | <code>compute-vm</code> · <code>simple-nva</code> | <code>google_compute_address</code> |
|
| [nva.tf](./nva.tf) | None | <code>compute-vm</code> · <code>simple-nva</code> | <code>google_compute_address</code> |
|
||||||
| [outputs.tf](./outputs.tf) | Module outputs. | | <code>google_storage_bucket_object</code> · <code>local_file</code> |
|
| [outputs.tf](./outputs.tf) | Module outputs. | | <code>google_storage_bucket_object</code> · <code>local_file</code> |
|
||||||
| [regions.tf](./regions.tf) | Compute short names for regions. | | |
|
| [regions.tf](./regions.tf) | Compute short names for regions. | | |
|
||||||
|
|
|
@ -14,6 +14,18 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
resource "google_network_connectivity_hub" "hub_trusted" {
|
||||||
|
name = "prod-hub-trusted"
|
||||||
|
description = "Prod hub trusted"
|
||||||
|
project = module.landing-project.project_id
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "google_network_connectivity_hub" "hub_untrusted" {
|
||||||
|
name = "prod-hub-untrusted"
|
||||||
|
description = "Prod hub untrusted"
|
||||||
|
project = module.landing-project.project_id
|
||||||
|
}
|
||||||
|
|
||||||
module "spokes-trusted" {
|
module "spokes-trusted" {
|
||||||
for_each = var.regions
|
for_each = var.regions
|
||||||
source = "../../../modules/ncc-spoke-ra"
|
source = "../../../modules/ncc-spoke-ra"
|
||||||
|
@ -22,8 +34,8 @@ module "spokes-trusted" {
|
||||||
region = each.value
|
region = each.value
|
||||||
|
|
||||||
hub = {
|
hub = {
|
||||||
create = true,
|
create = false,
|
||||||
name = "prod-hub-trusted-${each.value}"
|
id = google_network_connectivity_hub.hub_trusted.id
|
||||||
}
|
}
|
||||||
|
|
||||||
router_appliances = [
|
router_appliances = [
|
||||||
|
@ -72,8 +84,8 @@ module "spokes-untrusted" {
|
||||||
region = each.value
|
region = each.value
|
||||||
|
|
||||||
hub = {
|
hub = {
|
||||||
create = true,
|
create = false,
|
||||||
name = "prod-hub-untrusted-${each.value}"
|
id = google_network_connectivity_hub.hub_untrusted.id
|
||||||
}
|
}
|
||||||
|
|
||||||
router_appliances = [
|
router_appliances = [
|
||||||
|
|
|
@ -14,4 +14,4 @@
|
||||||
|
|
||||||
counts:
|
counts:
|
||||||
modules: 36
|
modules: 36
|
||||||
resources: 210
|
resources: 208
|
||||||
|
|
Loading…
Reference in New Issue