ajout bonus NAT et terraformshow

This commit is contained in:
jannaire
2025-12-04 10:34:45 +00:00
parent 7dd013650d
commit 17b8c0c3e8
4 changed files with 158 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.14.1",
"serial": 41,
"serial": 44,
"lineage": "cda21175-fcc8-5d20-f9f0-0bb6b6aa53e7",
"outputs": {
"backend_instance_name": {
@@ -918,6 +918,101 @@
}
]
},
{
"module": "module.network",
"mode": "managed",
"type": "google_compute_router",
"name": "nat_router",
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"bgp": [],
"creation_timestamp": "2025-12-04T02:29:18.660-08:00",
"description": "",
"encrypted_interconnect_router": false,
"id": "projects/fluted-agency-478713-h5/regions/europe-west9/routers/fluted-agency-478713-h5-nat-router",
"name": "fluted-agency-478713-h5-nat-router",
"network": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
"project": "fluted-agency-478713-h5",
"region": "europe-west9",
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/regions/europe-west9/routers/fluted-agency-478713-h5-nat-router",
"timeouts": null
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
"dependencies": [
"module.network.google_compute_network.vpc"
]
}
]
},
{
"module": "module.network",
"mode": "managed",
"type": "google_compute_router_nat",
"name": "nat",
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"auto_network_tier": "PREMIUM",
"drain_nat_ips": null,
"enable_dynamic_port_allocation": false,
"enable_endpoint_independent_mapping": false,
"endpoint_types": [
"ENDPOINT_TYPE_VM"
],
"icmp_idle_timeout_sec": 30,
"id": "fluted-agency-478713-h5/europe-west9/fluted-agency-478713-h5-nat-router/fluted-agency-478713-h5-cloud-nat",
"log_config": [],
"max_ports_per_vm": 0,
"min_ports_per_vm": 0,
"name": "fluted-agency-478713-h5-cloud-nat",
"nat_ip_allocate_option": "AUTO_ONLY",
"nat_ips": null,
"project": "fluted-agency-478713-h5",
"region": "europe-west9",
"router": "fluted-agency-478713-h5-nat-router",
"rules": [],
"source_subnetwork_ip_ranges_to_nat": "LIST_OF_SUBNETWORKS",
"subnetwork": [
{
"name": "fluted-agency-478713-h5-backend-subnet",
"secondary_ip_range_names": [],
"source_ip_ranges_to_nat": [
"ALL_IP_RANGES"
]
},
{
"name": "fluted-agency-478713-h5-database-subnet",
"secondary_ip_range_names": [],
"source_ip_ranges_to_nat": [
"ALL_IP_RANGES"
]
}
],
"tcp_established_idle_timeout_sec": 1200,
"tcp_time_wait_timeout_sec": 120,
"tcp_transitory_idle_timeout_sec": 30,
"timeouts": null,
"udp_idle_timeout_sec": 30
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
"dependencies": [
"module.network.google_compute_network.vpc",
"module.network.google_compute_router.nat_router",
"module.network.google_compute_subnetwork.backend",
"module.network.google_compute_subnetwork.database"
]
}
]
},
{
"module": "module.network",
"mode": "managed",