forked from pierront/but3-iac
873 lines
33 KiB
JSON
873 lines
33 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.14.1",
|
|
"serial": 40,
|
|
"lineage": "7a2c01bc-80e0-06dc-0a3b-dc1afa3caf10",
|
|
"outputs": {
|
|
"frontend_public_ip": {
|
|
"value": "34.163.243.33",
|
|
"type": "string"
|
|
},
|
|
"internal_ips": {
|
|
"value": {
|
|
"backend": "10.10.2.2",
|
|
"database": "10.10.3.2",
|
|
"frontend": "10.10.1.2"
|
|
},
|
|
"type": [
|
|
"object",
|
|
{
|
|
"backend": "string",
|
|
"database": "string",
|
|
"frontend": "string"
|
|
}
|
|
]
|
|
},
|
|
"vpc_id": {
|
|
"value": "projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"module": "module.compute",
|
|
"mode": "managed",
|
|
"type": "google_compute_instance",
|
|
"name": "backend",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 6,
|
|
"attributes": {
|
|
"advanced_machine_features": [],
|
|
"allow_stopping_for_update": null,
|
|
"attached_disk": [],
|
|
"boot_disk": [
|
|
{
|
|
"auto_delete": true,
|
|
"device_name": "persistent-disk-0",
|
|
"disk_encryption_key_raw": "",
|
|
"disk_encryption_key_sha256": "",
|
|
"initialize_params": [
|
|
{
|
|
"enable_confidential_compute": false,
|
|
"image": "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-11-bullseye-v20251111",
|
|
"labels": {},
|
|
"provisioned_iops": 0,
|
|
"provisioned_throughput": 0,
|
|
"resource_manager_tags": null,
|
|
"resource_policies": [],
|
|
"size": 10,
|
|
"storage_pool": "",
|
|
"type": "pd-standard"
|
|
}
|
|
],
|
|
"interface": "",
|
|
"kms_key_self_link": "",
|
|
"mode": "READ_WRITE",
|
|
"source": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/zones/europe-west9-b/disks/backend-instance"
|
|
}
|
|
],
|
|
"can_ip_forward": false,
|
|
"confidential_instance_config": [],
|
|
"cpu_platform": "Intel Broadwell",
|
|
"creation_timestamp": "2025-12-04T01:01:29.304-08:00",
|
|
"current_status": "RUNNING",
|
|
"deletion_protection": false,
|
|
"description": "",
|
|
"desired_status": null,
|
|
"effective_labels": {
|
|
"goog-terraform-provisioned": "true"
|
|
},
|
|
"enable_display": false,
|
|
"guest_accelerator": [],
|
|
"hostname": "",
|
|
"id": "projects/projet-hugo-478713/zones/europe-west9-b/instances/backend-instance",
|
|
"instance_id": "4823748000228373254",
|
|
"key_revocation_action_type": "",
|
|
"label_fingerprint": "vezUS-42LLM=",
|
|
"labels": null,
|
|
"machine_type": "e2-small",
|
|
"metadata": {
|
|
"enable-oslogin": "true"
|
|
},
|
|
"metadata_fingerprint": "npZjdLELubs=",
|
|
"metadata_startup_script": null,
|
|
"min_cpu_platform": "",
|
|
"name": "backend-instance",
|
|
"network_interface": [
|
|
{
|
|
"access_config": [],
|
|
"alias_ip_range": [],
|
|
"internal_ipv6_prefix_length": 0,
|
|
"ipv6_access_config": [],
|
|
"ipv6_access_type": "",
|
|
"ipv6_address": "",
|
|
"name": "nic0",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"network_ip": "10.10.2.2",
|
|
"nic_type": "",
|
|
"queue_count": 0,
|
|
"stack_type": "IPV4_ONLY",
|
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-backend",
|
|
"subnetwork_project": "projet-hugo-478713"
|
|
}
|
|
],
|
|
"network_performance_config": [],
|
|
"params": [],
|
|
"project": "projet-hugo-478713",
|
|
"reservation_affinity": [],
|
|
"resource_policies": null,
|
|
"scheduling": [
|
|
{
|
|
"automatic_restart": true,
|
|
"instance_termination_action": "",
|
|
"local_ssd_recovery_timeout": [],
|
|
"max_run_duration": [],
|
|
"min_node_cpus": 0,
|
|
"node_affinities": [],
|
|
"on_host_maintenance": "MIGRATE",
|
|
"on_instance_stop_action": [],
|
|
"preemptible": false,
|
|
"provisioning_model": "STANDARD"
|
|
}
|
|
],
|
|
"scratch_disk": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/zones/europe-west9-b/instances/backend-instance",
|
|
"service_account": [],
|
|
"shielded_instance_config": [
|
|
{
|
|
"enable_integrity_monitoring": true,
|
|
"enable_secure_boot": false,
|
|
"enable_vtpm": true
|
|
}
|
|
],
|
|
"tags": [
|
|
"backend",
|
|
"ssh"
|
|
],
|
|
"tags_fingerprint": "N2bbCLFli_k=",
|
|
"terraform_labels": {
|
|
"goog-terraform-provisioned": "true"
|
|
},
|
|
"timeouts": null,
|
|
"zone": "europe-west9-b"
|
|
},
|
|
"sensitive_attributes": [
|
|
[
|
|
{
|
|
"type": "get_attr",
|
|
"value": "boot_disk"
|
|
},
|
|
{
|
|
"type": "index",
|
|
"value": {
|
|
"value": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
{
|
|
"type": "get_attr",
|
|
"value": "disk_encryption_key_raw"
|
|
}
|
|
]
|
|
],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiNiJ9",
|
|
"dependencies": [
|
|
"module.network.google_compute_network.vpc",
|
|
"module.network.google_compute_subnetwork.backend"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.compute",
|
|
"mode": "managed",
|
|
"type": "google_compute_instance",
|
|
"name": "database",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 6,
|
|
"attributes": {
|
|
"advanced_machine_features": [],
|
|
"allow_stopping_for_update": null,
|
|
"attached_disk": [],
|
|
"boot_disk": [
|
|
{
|
|
"auto_delete": true,
|
|
"device_name": "persistent-disk-0",
|
|
"disk_encryption_key_raw": "",
|
|
"disk_encryption_key_sha256": "",
|
|
"initialize_params": [
|
|
{
|
|
"enable_confidential_compute": false,
|
|
"image": "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-11-bullseye-v20251111",
|
|
"labels": {},
|
|
"provisioned_iops": 0,
|
|
"provisioned_throughput": 0,
|
|
"resource_manager_tags": null,
|
|
"resource_policies": [],
|
|
"size": 20,
|
|
"storage_pool": "",
|
|
"type": "pd-standard"
|
|
}
|
|
],
|
|
"interface": "",
|
|
"kms_key_self_link": "",
|
|
"mode": "READ_WRITE",
|
|
"source": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/zones/europe-west9-b/disks/database-instance"
|
|
}
|
|
],
|
|
"can_ip_forward": false,
|
|
"confidential_instance_config": [],
|
|
"cpu_platform": "Intel Broadwell",
|
|
"creation_timestamp": "2025-12-04T01:01:29.534-08:00",
|
|
"current_status": "RUNNING",
|
|
"deletion_protection": false,
|
|
"description": "",
|
|
"desired_status": null,
|
|
"effective_labels": {
|
|
"goog-terraform-provisioned": "true"
|
|
},
|
|
"enable_display": false,
|
|
"guest_accelerator": [],
|
|
"hostname": "",
|
|
"id": "projects/projet-hugo-478713/zones/europe-west9-b/instances/database-instance",
|
|
"instance_id": "7497641329860342534",
|
|
"key_revocation_action_type": "",
|
|
"label_fingerprint": "vezUS-42LLM=",
|
|
"labels": null,
|
|
"machine_type": "e2-small",
|
|
"metadata": {
|
|
"enable-oslogin": "true"
|
|
},
|
|
"metadata_fingerprint": "npZjdLELubs=",
|
|
"metadata_startup_script": null,
|
|
"min_cpu_platform": "",
|
|
"name": "database-instance",
|
|
"network_interface": [
|
|
{
|
|
"access_config": [],
|
|
"alias_ip_range": [],
|
|
"internal_ipv6_prefix_length": 0,
|
|
"ipv6_access_config": [],
|
|
"ipv6_access_type": "",
|
|
"ipv6_address": "",
|
|
"name": "nic0",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"network_ip": "10.10.3.2",
|
|
"nic_type": "",
|
|
"queue_count": 0,
|
|
"stack_type": "IPV4_ONLY",
|
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-database",
|
|
"subnetwork_project": "projet-hugo-478713"
|
|
}
|
|
],
|
|
"network_performance_config": [],
|
|
"params": [],
|
|
"project": "projet-hugo-478713",
|
|
"reservation_affinity": [],
|
|
"resource_policies": null,
|
|
"scheduling": [
|
|
{
|
|
"automatic_restart": true,
|
|
"instance_termination_action": "",
|
|
"local_ssd_recovery_timeout": [],
|
|
"max_run_duration": [],
|
|
"min_node_cpus": 0,
|
|
"node_affinities": [],
|
|
"on_host_maintenance": "MIGRATE",
|
|
"on_instance_stop_action": [],
|
|
"preemptible": false,
|
|
"provisioning_model": "STANDARD"
|
|
}
|
|
],
|
|
"scratch_disk": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/zones/europe-west9-b/instances/database-instance",
|
|
"service_account": [],
|
|
"shielded_instance_config": [
|
|
{
|
|
"enable_integrity_monitoring": true,
|
|
"enable_secure_boot": false,
|
|
"enable_vtpm": true
|
|
}
|
|
],
|
|
"tags": [
|
|
"database",
|
|
"ssh"
|
|
],
|
|
"tags_fingerprint": "22sTRfPQYj4=",
|
|
"terraform_labels": {
|
|
"goog-terraform-provisioned": "true"
|
|
},
|
|
"timeouts": null,
|
|
"zone": "europe-west9-b"
|
|
},
|
|
"sensitive_attributes": [
|
|
[
|
|
{
|
|
"type": "get_attr",
|
|
"value": "boot_disk"
|
|
},
|
|
{
|
|
"type": "index",
|
|
"value": {
|
|
"value": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
{
|
|
"type": "get_attr",
|
|
"value": "disk_encryption_key_raw"
|
|
}
|
|
]
|
|
],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiNiJ9",
|
|
"dependencies": [
|
|
"module.network.google_compute_network.vpc",
|
|
"module.network.google_compute_subnetwork.database"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.compute",
|
|
"mode": "managed",
|
|
"type": "google_compute_instance",
|
|
"name": "frontend",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 6,
|
|
"attributes": {
|
|
"advanced_machine_features": [],
|
|
"allow_stopping_for_update": null,
|
|
"attached_disk": [],
|
|
"boot_disk": [
|
|
{
|
|
"auto_delete": true,
|
|
"device_name": "persistent-disk-0",
|
|
"disk_encryption_key_raw": "",
|
|
"disk_encryption_key_sha256": "",
|
|
"initialize_params": [
|
|
{
|
|
"enable_confidential_compute": false,
|
|
"image": "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-11-bullseye-v20251111",
|
|
"labels": {},
|
|
"provisioned_iops": 0,
|
|
"provisioned_throughput": 0,
|
|
"resource_manager_tags": null,
|
|
"resource_policies": [],
|
|
"size": 10,
|
|
"storage_pool": "",
|
|
"type": "pd-standard"
|
|
}
|
|
],
|
|
"interface": "",
|
|
"kms_key_self_link": "",
|
|
"mode": "READ_WRITE",
|
|
"source": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/zones/europe-west9-b/disks/frontend-instance"
|
|
}
|
|
],
|
|
"can_ip_forward": false,
|
|
"confidential_instance_config": [],
|
|
"cpu_platform": "Intel Broadwell",
|
|
"creation_timestamp": "2025-12-04T01:01:29.457-08:00",
|
|
"current_status": "RUNNING",
|
|
"deletion_protection": false,
|
|
"description": "",
|
|
"desired_status": null,
|
|
"effective_labels": {
|
|
"goog-terraform-provisioned": "true"
|
|
},
|
|
"enable_display": false,
|
|
"guest_accelerator": [],
|
|
"hostname": "",
|
|
"id": "projects/projet-hugo-478713/zones/europe-west9-b/instances/frontend-instance",
|
|
"instance_id": "1035462462903481094",
|
|
"key_revocation_action_type": "",
|
|
"label_fingerprint": "vezUS-42LLM=",
|
|
"labels": null,
|
|
"machine_type": "e2-small",
|
|
"metadata": {
|
|
"enable-oslogin": "true"
|
|
},
|
|
"metadata_fingerprint": "npZjdLELubs=",
|
|
"metadata_startup_script": null,
|
|
"min_cpu_platform": "",
|
|
"name": "frontend-instance",
|
|
"network_interface": [
|
|
{
|
|
"access_config": [
|
|
{
|
|
"nat_ip": "34.163.243.33",
|
|
"network_tier": "PREMIUM",
|
|
"public_ptr_domain_name": ""
|
|
}
|
|
],
|
|
"alias_ip_range": [],
|
|
"internal_ipv6_prefix_length": 0,
|
|
"ipv6_access_config": [],
|
|
"ipv6_access_type": "",
|
|
"ipv6_address": "",
|
|
"name": "nic0",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/global/networks/projet-hugo-478713-vpc",
|
|
"network_ip": "10.10.1.2",
|
|
"nic_type": "",
|
|
"queue_count": 0,
|
|
"stack_type": "IPV4_ONLY",
|
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/regions/europe-west9/subnetworks/projet-hugo-478713-subnet-frontend",
|
|
"subnetwork_project": "projet-hugo-478713"
|
|
}
|
|
],
|
|
"network_performance_config": [],
|
|
"params": [],
|
|
"project": "projet-hugo-478713",
|
|
"reservation_affinity": [],
|
|
"resource_policies": null,
|
|
"scheduling": [
|
|
{
|
|
"automatic_restart": true,
|
|
"instance_termination_action": "",
|
|
"local_ssd_recovery_timeout": [],
|
|
"max_run_duration": [],
|
|
"min_node_cpus": 0,
|
|
"node_affinities": [],
|
|
"on_host_maintenance": "MIGRATE",
|
|
"on_instance_stop_action": [],
|
|
"preemptible": false,
|
|
"provisioning_model": "STANDARD"
|
|
}
|
|
],
|
|
"scratch_disk": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/projet-hugo-478713/zones/europe-west9-b/instances/frontend-instance",
|
|
"service_account": [],
|
|
"shielded_instance_config": [
|
|
{
|
|
"enable_integrity_monitoring": true,
|
|
"enable_secure_boot": false,
|
|
"enable_vtpm": true
|
|
}
|
|
],
|
|
"tags": [
|
|
"frontend",
|
|
"ssh"
|
|
],
|
|
"tags_fingerprint": "sermMtqzdso=",
|
|
"terraform_labels": {
|
|
"goog-terraform-provisioned": "true"
|
|
},
|
|
"timeouts": null,
|
|
"zone": "europe-west9-b"
|
|
},
|
|
"sensitive_attributes": [
|
|
[
|
|
{
|
|
"type": "get_attr",
|
|
"value": "boot_disk"
|
|
},
|
|
{
|
|
"type": "index",
|
|
"value": {
|
|
"value": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
{
|
|
"type": "get_attr",
|
|
"value": "disk_encryption_key_raw"
|
|
}
|
|
]
|
|
],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiNiJ9",
|
|
"dependencies": [
|
|
"module.network.google_compute_network.vpc",
|
|
"module.network.google_compute_subnetwork.frontend"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.network",
|
|
"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-04T01:01:06.600-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",
|
|
"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": [
|
|
"module.network.google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.network",
|
|
"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-04T01:01:06.504-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",
|
|
"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": [
|
|
"module.network.google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.network",
|
|
"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-04T01:01:06.513-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",
|
|
"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": [
|
|
"module.network.google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.network",
|
|
"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-04T01:01:06.529-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",
|
|
"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": [
|
|
"module.network.google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.network",
|
|
"mode": "managed",
|
|
"type": "google_compute_network",
|
|
"name": "vpc",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"auto_create_subnetworks": false,
|
|
"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",
|
|
"numeric_id": "8286942021195461459",
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.network",
|
|
"mode": "managed",
|
|
"type": "google_compute_subnetwork",
|
|
"name": "backend",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"creation_timestamp": "2025-12-04T01:01:06.833-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",
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"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",
|
|
"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",
|
|
"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_subnetwork",
|
|
"name": "database",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"creation_timestamp": "2025-12-04T01:01:06.769-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",
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"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",
|
|
"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",
|
|
"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_subnetwork",
|
|
"name": "frontend",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"creation_timestamp": "2025-12-04T01:01:07.625-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",
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"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",
|
|
"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",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"module.network.google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|