forked from pierront/but3-iac
424 lines
16 KiB
JSON
424 lines
16 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.14.1",
|
|
"serial": 9,
|
|
"lineage": "8f64a430-09e6-f22d-4f80-50516441efc4",
|
|
"outputs": {
|
|
"subnet_ids": {
|
|
"value": {
|
|
"backend": "projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-backend",
|
|
"database": "projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-database",
|
|
"frontend": "projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-frontend"
|
|
},
|
|
"type": [
|
|
"object",
|
|
{
|
|
"backend": "string",
|
|
"database": "string",
|
|
"frontend": "string"
|
|
}
|
|
]
|
|
},
|
|
"vpc_id": {
|
|
"value": "projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_firewall",
|
|
"name": "backend_from_frontend",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"allow": [
|
|
{
|
|
"ports": [
|
|
"8000"
|
|
],
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"creation_timestamp": "2025-12-03T07:20:23.193-08:00",
|
|
"deny": [],
|
|
"description": "",
|
|
"destination_ranges": [],
|
|
"direction": "INGRESS",
|
|
"disabled": false,
|
|
"enable_logging": null,
|
|
"id": "projects/projet-hugo-478713/global/firewalls/projet-hugo-478713-allow-frontend-to-backend-8000",
|
|
"log_config": [],
|
|
"name": "projet-hugo-478713-allow-frontend-to-backend-8000",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"params": [],
|
|
"priority": 1000,
|
|
"project": "projet-hugo-478713",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/firewalls/projet-hugo-478713-allow-frontend-to-backend-8000",
|
|
"source_ranges": [
|
|
"10.10.1.0/24"
|
|
],
|
|
"source_service_accounts": null,
|
|
"source_tags": null,
|
|
"target_service_accounts": null,
|
|
"target_tags": [
|
|
"backend"
|
|
],
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_firewall",
|
|
"name": "db_from_backend",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"allow": [
|
|
{
|
|
"ports": [
|
|
"3306"
|
|
],
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"creation_timestamp": "2025-12-03T07:20:23.093-08:00",
|
|
"deny": [],
|
|
"description": "",
|
|
"destination_ranges": [],
|
|
"direction": "INGRESS",
|
|
"disabled": false,
|
|
"enable_logging": null,
|
|
"id": "projects/projet-hugo-478713/global/firewalls/projet-hugo-478713-allow-backend-to-db-3306",
|
|
"log_config": [],
|
|
"name": "projet-hugo-478713-allow-backend-to-db-3306",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"params": [],
|
|
"priority": 1000,
|
|
"project": "projet-hugo-478713",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/firewalls/projet-hugo-478713-allow-backend-to-db-3306",
|
|
"source_ranges": [
|
|
"10.10.2.0/24"
|
|
],
|
|
"source_service_accounts": null,
|
|
"source_tags": null,
|
|
"target_service_accounts": null,
|
|
"target_tags": [
|
|
"database"
|
|
],
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_firewall",
|
|
"name": "frontend_http",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"allow": [
|
|
{
|
|
"ports": [
|
|
"80",
|
|
"443"
|
|
],
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"creation_timestamp": "2025-12-03T07:20:23.102-08:00",
|
|
"deny": [],
|
|
"description": "",
|
|
"destination_ranges": [],
|
|
"direction": "INGRESS",
|
|
"disabled": false,
|
|
"enable_logging": null,
|
|
"id": "projects/projet-hugo-478713/global/firewalls/projet-hugo-478713-allow-frontend-http",
|
|
"log_config": [],
|
|
"name": "projet-hugo-478713-allow-frontend-http",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"params": [],
|
|
"priority": 1000,
|
|
"project": "projet-hugo-478713",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/firewalls/projet-hugo-478713-allow-frontend-http",
|
|
"source_ranges": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"source_service_accounts": null,
|
|
"source_tags": null,
|
|
"target_service_accounts": null,
|
|
"target_tags": [
|
|
"frontend"
|
|
],
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_firewall",
|
|
"name": "ssh",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"allow": [
|
|
{
|
|
"ports": [
|
|
"22"
|
|
],
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"creation_timestamp": "2025-12-03T07:20:23.081-08:00",
|
|
"deny": [],
|
|
"description": "",
|
|
"destination_ranges": [],
|
|
"direction": "INGRESS",
|
|
"disabled": false,
|
|
"enable_logging": null,
|
|
"id": "projects/projet-hugo-478713/global/firewalls/projet-hugo-478713-allow-ssh",
|
|
"log_config": [],
|
|
"name": "projet-hugo-478713-allow-ssh",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"params": [],
|
|
"priority": 1000,
|
|
"project": "projet-hugo-478713",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/firewalls/projet-hugo-478713-allow-ssh",
|
|
"source_ranges": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"source_service_accounts": null,
|
|
"source_tags": null,
|
|
"target_service_accounts": null,
|
|
"target_tags": [
|
|
"ssh"
|
|
],
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
|
"dependencies": [
|
|
"google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_network",
|
|
"name": "vpc",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"auto_create_subnetworks": false,
|
|
"bgp_always_compare_med": false,
|
|
"bgp_best_path_selection_mode": "LEGACY",
|
|
"bgp_inter_region_cost": "",
|
|
"delete_default_routes_on_create": false,
|
|
"description": "",
|
|
"enable_ula_internal_ipv6": false,
|
|
"gateway_ipv4": "",
|
|
"id": "projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"internal_ipv6_range": "",
|
|
"mtu": 0,
|
|
"name": "projet-hugo-478713-vpc",
|
|
"network_firewall_policy_enforcement_order": "AFTER_CLASSIC_FIREWALL",
|
|
"network_id": "2318127662437886926",
|
|
"network_profile": "",
|
|
"numeric_id": "2318127662437886926",
|
|
"params": [],
|
|
"project": "projet-hugo-478713",
|
|
"routing_mode": "REGIONAL",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_subnetwork",
|
|
"name": "backend",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"creation_timestamp": "2025-12-03T07:20:23.454-08:00",
|
|
"description": "",
|
|
"external_ipv6_prefix": "",
|
|
"fingerprint": null,
|
|
"gateway_address": "10.10.2.1",
|
|
"id": "projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-backend",
|
|
"internal_ipv6_prefix": "",
|
|
"ip_cidr_range": "10.10.2.0/24",
|
|
"ip_collection": null,
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"ipv6_gce_endpoint": "",
|
|
"log_config": [],
|
|
"name": "projet-hugo-478713-subnet-backend",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"params": [],
|
|
"private_ip_google_access": false,
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
|
"project": "projet-hugo-478713",
|
|
"purpose": "PRIVATE",
|
|
"region": "europe-west9",
|
|
"reserved_internal_range": "",
|
|
"role": "",
|
|
"secondary_ip_range": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-backend",
|
|
"send_secondary_ip_range_if_empty": null,
|
|
"stack_type": "IPV4_ONLY",
|
|
"state": "",
|
|
"subnetwork_id": 5382086069306911704,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_subnetwork",
|
|
"name": "database",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"creation_timestamp": "2025-12-03T07:20:23.379-08:00",
|
|
"description": "",
|
|
"external_ipv6_prefix": "",
|
|
"fingerprint": null,
|
|
"gateway_address": "10.10.3.1",
|
|
"id": "projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-database",
|
|
"internal_ipv6_prefix": "",
|
|
"ip_cidr_range": "10.10.3.0/24",
|
|
"ip_collection": null,
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"ipv6_gce_endpoint": "",
|
|
"log_config": [],
|
|
"name": "projet-hugo-478713-subnet-database",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"params": [],
|
|
"private_ip_google_access": false,
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
|
"project": "projet-hugo-478713",
|
|
"purpose": "PRIVATE",
|
|
"region": "europe-west9",
|
|
"reserved_internal_range": "",
|
|
"role": "",
|
|
"secondary_ip_range": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-database",
|
|
"send_secondary_ip_range_if_empty": null,
|
|
"stack_type": "IPV4_ONLY",
|
|
"state": "",
|
|
"subnetwork_id": 1286626519671499736,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_subnetwork",
|
|
"name": "frontend",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"creation_timestamp": "2025-12-03T07:20:23.456-08:00",
|
|
"description": "",
|
|
"external_ipv6_prefix": "",
|
|
"fingerprint": null,
|
|
"gateway_address": "10.10.1.1",
|
|
"id": "projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-frontend",
|
|
"internal_ipv6_prefix": "",
|
|
"ip_cidr_range": "10.10.1.0/24",
|
|
"ip_collection": null,
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"ipv6_gce_endpoint": "",
|
|
"log_config": [],
|
|
"name": "projet-hugo-478713-subnet-frontend",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"params": [],
|
|
"private_ip_google_access": false,
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
|
"project": "projet-hugo-478713",
|
|
"purpose": "PRIVATE",
|
|
"region": "europe-west9",
|
|
"reserved_internal_range": "",
|
|
"role": "",
|
|
"secondary_ip_range": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-frontend",
|
|
"send_secondary_ip_range_if_empty": null,
|
|
"stack_type": "IPV4_ONLY",
|
|
"state": "",
|
|
"subnetwork_id": 8025315926605687768,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|