forked from pierront/but3-iac
915 lines
36 KiB
JSON
915 lines
36 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.14.1",
|
|
"serial": 34,
|
|
"lineage": "cda21175-fcc8-5d20-f9f0-0bb6b6aa53e7",
|
|
"outputs": {
|
|
"backend_instance_name": {
|
|
"value": "backend-instance",
|
|
"type": "string"
|
|
},
|
|
"backend_internal_ip": {
|
|
"value": "10.0.2.2",
|
|
"type": "string"
|
|
},
|
|
"backend_subnet_id": {
|
|
"value": "projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-backend-subnet",
|
|
"type": "string"
|
|
},
|
|
"database_instance_name": {
|
|
"value": "database-instance",
|
|
"type": "string"
|
|
},
|
|
"database_internal_ip": {
|
|
"value": "10.0.3.2",
|
|
"type": "string"
|
|
},
|
|
"database_subnet_id": {
|
|
"value": "projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-database-subnet",
|
|
"type": "string"
|
|
},
|
|
"frontend_instance_name": {
|
|
"value": "frontend-instance",
|
|
"type": "string"
|
|
},
|
|
"frontend_internal_ip": {
|
|
"value": "10.0.1.2",
|
|
"type": "string"
|
|
},
|
|
"frontend_public_ip": {
|
|
"value": "34.155.124.130",
|
|
"type": "string"
|
|
},
|
|
"frontend_subnet_id": {
|
|
"value": "projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-frontend-subnet",
|
|
"type": "string"
|
|
},
|
|
"vpc_id": {
|
|
"value": "projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"module": "module.compute",
|
|
"mode": "data",
|
|
"type": "google_compute_image",
|
|
"name": "debian_11",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"archive_size_bytes": 2307214080,
|
|
"creation_timestamp": "2025-11-11T16:48:31.753-08:00",
|
|
"description": "Debian, Debian GNU/Linux, 11 (bullseye), amd64 built on 20251111",
|
|
"disk_size_gb": 10,
|
|
"family": "debian-11",
|
|
"filter": null,
|
|
"id": "projects/debian-cloud/global/images/debian-11-bullseye-v20251111",
|
|
"image_encryption_key_sha256": "",
|
|
"image_id": "2625777767580329904",
|
|
"label_fingerprint": "iNBmVNCFF9w=",
|
|
"labels": {
|
|
"public-image": "true"
|
|
},
|
|
"licenses": [
|
|
"https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-11-bullseye"
|
|
],
|
|
"most_recent": false,
|
|
"name": "debian-11-bullseye-v20251111",
|
|
"project": "debian-cloud",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-11-bullseye-v20251111",
|
|
"source_disk": "",
|
|
"source_disk_encryption_key_sha256": "",
|
|
"source_disk_id": "",
|
|
"source_image_id": "",
|
|
"status": "READY"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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": {},
|
|
"size": 10,
|
|
"storage_pool": "",
|
|
"type": "pd-standard"
|
|
}
|
|
],
|
|
"kms_key_self_link": "",
|
|
"mode": "READ_WRITE",
|
|
"source": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/zones/europe-west9-b/disks/backend-instance"
|
|
}
|
|
],
|
|
"can_ip_forward": false,
|
|
"confidential_instance_config": [],
|
|
"cpu_platform": "Intel Broadwell",
|
|
"current_status": "RUNNING",
|
|
"deletion_protection": false,
|
|
"description": "",
|
|
"desired_status": null,
|
|
"effective_labels": {},
|
|
"enable_display": false,
|
|
"guest_accelerator": [],
|
|
"hostname": "",
|
|
"id": "projects/fluted-agency-478713-h5/zones/europe-west9-b/instances/backend-instance",
|
|
"instance_id": "5962845577067397518",
|
|
"label_fingerprint": "42WmSpB8rSM=",
|
|
"labels": {},
|
|
"machine_type": "e2-medium",
|
|
"metadata": {
|
|
"enable-oslogin": "TRUE"
|
|
},
|
|
"metadata_fingerprint": "MCMqZ1HfC8w=",
|
|
"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/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"network_ip": "10.0.2.2",
|
|
"nic_type": "",
|
|
"queue_count": 0,
|
|
"stack_type": "IPV4_ONLY",
|
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-backend-subnet",
|
|
"subnetwork_project": "fluted-agency-478713-h5"
|
|
}
|
|
],
|
|
"network_performance_config": [],
|
|
"params": [],
|
|
"project": "fluted-agency-478713-h5",
|
|
"reservation_affinity": [],
|
|
"resource_policies": [],
|
|
"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/fluted-agency-478713-h5/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": {},
|
|
"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.compute.data.google_compute_image.debian_11",
|
|
"module.network.google_compute_network.vpc",
|
|
"module.network.google_compute_subnetwork.backend",
|
|
"module.network.google_compute_subnetwork.database",
|
|
"module.network.google_compute_subnetwork.frontend"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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": {},
|
|
"size": 20,
|
|
"storage_pool": "",
|
|
"type": "pd-standard"
|
|
}
|
|
],
|
|
"kms_key_self_link": "",
|
|
"mode": "READ_WRITE",
|
|
"source": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/zones/europe-west9-b/disks/database-instance"
|
|
}
|
|
],
|
|
"can_ip_forward": false,
|
|
"confidential_instance_config": [],
|
|
"cpu_platform": "Intel Broadwell",
|
|
"current_status": "RUNNING",
|
|
"deletion_protection": false,
|
|
"description": "",
|
|
"desired_status": null,
|
|
"effective_labels": {},
|
|
"enable_display": false,
|
|
"guest_accelerator": [],
|
|
"hostname": "",
|
|
"id": "projects/fluted-agency-478713-h5/zones/europe-west9-b/instances/database-instance",
|
|
"instance_id": "3381403986872271246",
|
|
"label_fingerprint": "42WmSpB8rSM=",
|
|
"labels": {},
|
|
"machine_type": "e2-medium",
|
|
"metadata": {
|
|
"enable-oslogin": "TRUE"
|
|
},
|
|
"metadata_fingerprint": "MCMqZ1HfC8w=",
|
|
"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/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"network_ip": "10.0.3.2",
|
|
"nic_type": "",
|
|
"queue_count": 0,
|
|
"stack_type": "IPV4_ONLY",
|
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-database-subnet",
|
|
"subnetwork_project": "fluted-agency-478713-h5"
|
|
}
|
|
],
|
|
"network_performance_config": [],
|
|
"params": [],
|
|
"project": "fluted-agency-478713-h5",
|
|
"reservation_affinity": [],
|
|
"resource_policies": [],
|
|
"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/fluted-agency-478713-h5/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": {},
|
|
"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.compute.data.google_compute_image.debian_11",
|
|
"module.network.google_compute_network.vpc",
|
|
"module.network.google_compute_subnetwork.backend",
|
|
"module.network.google_compute_subnetwork.database",
|
|
"module.network.google_compute_subnetwork.frontend"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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": {},
|
|
"size": 10,
|
|
"storage_pool": "",
|
|
"type": "pd-standard"
|
|
}
|
|
],
|
|
"kms_key_self_link": "",
|
|
"mode": "READ_WRITE",
|
|
"source": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/zones/europe-west9-b/disks/frontend-instance"
|
|
}
|
|
],
|
|
"can_ip_forward": false,
|
|
"confidential_instance_config": [],
|
|
"cpu_platform": "Intel Broadwell",
|
|
"current_status": "RUNNING",
|
|
"deletion_protection": false,
|
|
"description": "",
|
|
"desired_status": null,
|
|
"effective_labels": {},
|
|
"enable_display": false,
|
|
"guest_accelerator": [],
|
|
"hostname": "",
|
|
"id": "projects/fluted-agency-478713-h5/zones/europe-west9-b/instances/frontend-instance",
|
|
"instance_id": "824861855395381646",
|
|
"label_fingerprint": "42WmSpB8rSM=",
|
|
"labels": {},
|
|
"machine_type": "e2-medium",
|
|
"metadata": {
|
|
"enable-oslogin": "TRUE"
|
|
},
|
|
"metadata_fingerprint": "MCMqZ1HfC8w=",
|
|
"metadata_startup_script": null,
|
|
"min_cpu_platform": "",
|
|
"name": "frontend-instance",
|
|
"network_interface": [
|
|
{
|
|
"access_config": [
|
|
{
|
|
"nat_ip": "34.155.124.130",
|
|
"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/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"network_ip": "10.0.1.2",
|
|
"nic_type": "",
|
|
"queue_count": 0,
|
|
"stack_type": "IPV4_ONLY",
|
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-frontend-subnet",
|
|
"subnetwork_project": "fluted-agency-478713-h5"
|
|
}
|
|
],
|
|
"network_performance_config": [],
|
|
"params": [],
|
|
"project": "fluted-agency-478713-h5",
|
|
"reservation_affinity": [],
|
|
"resource_policies": [],
|
|
"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/fluted-agency-478713-h5/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": {},
|
|
"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.compute.data.google_compute_image.debian_11",
|
|
"module.network.google_compute_network.vpc",
|
|
"module.network.google_compute_subnetwork.backend",
|
|
"module.network.google_compute_subnetwork.database",
|
|
"module.network.google_compute_subnetwork.frontend"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.network",
|
|
"mode": "managed",
|
|
"type": "google_compute_firewall",
|
|
"name": "backend_to_database_3306",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"allow": [
|
|
{
|
|
"ports": [
|
|
"3306"
|
|
],
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"creation_timestamp": "2025-12-03T07:08:41.312-08:00",
|
|
"deny": [],
|
|
"description": "Autorise le trafic TCP 3306 des instances backend vers database",
|
|
"destination_ranges": [],
|
|
"direction": "INGRESS",
|
|
"disabled": false,
|
|
"enable_logging": null,
|
|
"id": "projects/fluted-agency-478713-h5/global/firewalls/fluted-agency-478713-h5-fw-backend-database-3306",
|
|
"log_config": [],
|
|
"name": "fluted-agency-478713-h5-fw-backend-database-3306",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"priority": 1000,
|
|
"project": "fluted-agency-478713-h5",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/firewalls/fluted-agency-478713-h5-fw-backend-database-3306",
|
|
"source_ranges": [],
|
|
"source_service_accounts": [],
|
|
"source_tags": [
|
|
"backend"
|
|
],
|
|
"target_service_accounts": [],
|
|
"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_https",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"allow": [
|
|
{
|
|
"ports": [
|
|
"80",
|
|
"443"
|
|
],
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"creation_timestamp": "2025-12-03T07:08:41.348-08:00",
|
|
"deny": [],
|
|
"description": "Autorise HTTP/HTTPS vers les instances frontend",
|
|
"destination_ranges": [],
|
|
"direction": "INGRESS",
|
|
"disabled": false,
|
|
"enable_logging": null,
|
|
"id": "projects/fluted-agency-478713-h5/global/firewalls/fluted-agency-478713-h5-fw-frontend-http-https",
|
|
"log_config": [],
|
|
"name": "fluted-agency-478713-h5-fw-frontend-http-https",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"priority": 1000,
|
|
"project": "fluted-agency-478713-h5",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/firewalls/fluted-agency-478713-h5-fw-frontend-http-https",
|
|
"source_ranges": [
|
|
"0.0.0.0/0"
|
|
],
|
|
"source_service_accounts": [],
|
|
"source_tags": [],
|
|
"target_service_accounts": [],
|
|
"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": "frontend_to_backend_8000",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"allow": [
|
|
{
|
|
"ports": [
|
|
"8000"
|
|
],
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"creation_timestamp": "2025-12-03T07:08:41.305-08:00",
|
|
"deny": [],
|
|
"description": "Autorise le trafic TCP 8000 des instances frontend vers backend",
|
|
"destination_ranges": [],
|
|
"direction": "INGRESS",
|
|
"disabled": false,
|
|
"enable_logging": null,
|
|
"id": "projects/fluted-agency-478713-h5/global/firewalls/fluted-agency-478713-h5-fw-frontend-backend-8000",
|
|
"log_config": [],
|
|
"name": "fluted-agency-478713-h5-fw-frontend-backend-8000",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"priority": 1000,
|
|
"project": "fluted-agency-478713-h5",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/firewalls/fluted-agency-478713-h5-fw-frontend-backend-8000",
|
|
"source_ranges": [],
|
|
"source_service_accounts": [],
|
|
"source_tags": [
|
|
"frontend"
|
|
],
|
|
"target_service_accounts": [],
|
|
"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": "ssh_all",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"allow": [
|
|
{
|
|
"ports": [
|
|
"22"
|
|
],
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"creation_timestamp": "2025-12-03T07:08:41.346-08:00",
|
|
"deny": [],
|
|
"description": "Autorise SSH vers toutes les instances du VPC",
|
|
"destination_ranges": [],
|
|
"direction": "INGRESS",
|
|
"disabled": false,
|
|
"enable_logging": null,
|
|
"id": "projects/fluted-agency-478713-h5/global/firewalls/fluted-agency-478713-h5-fw-ssh-all",
|
|
"log_config": [],
|
|
"name": "fluted-agency-478713-h5-fw-ssh-all",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"priority": 1000,
|
|
"project": "fluted-agency-478713-h5",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/firewalls/fluted-agency-478713-h5-fw-ssh-all",
|
|
"source_ranges": [
|
|
"34.155.72.245/32"
|
|
],
|
|
"source_service_accounts": [],
|
|
"source_tags": [],
|
|
"target_service_accounts": [],
|
|
"target_tags": [],
|
|
"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/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"internal_ipv6_range": "",
|
|
"mtu": 0,
|
|
"name": "fluted-agency-478713-h5-vpc",
|
|
"network_firewall_policy_enforcement_order": "AFTER_CLASSIC_FIREWALL",
|
|
"numeric_id": "2893955044504104076",
|
|
"project": "fluted-agency-478713-h5",
|
|
"routing_mode": "REGIONAL",
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMCJ9"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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-03T07:08:41.605-08:00",
|
|
"description": "",
|
|
"external_ipv6_prefix": "",
|
|
"fingerprint": null,
|
|
"gateway_address": "10.0.2.1",
|
|
"id": "projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-backend-subnet",
|
|
"internal_ipv6_prefix": "",
|
|
"ip_cidr_range": "10.0.2.0/24",
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"log_config": [],
|
|
"name": "fluted-agency-478713-h5-backend-subnet",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"private_ip_google_access": false,
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
|
"project": "fluted-agency-478713-h5",
|
|
"purpose": "PRIVATE",
|
|
"region": "europe-west9",
|
|
"role": "",
|
|
"secondary_ip_range": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-backend-subnet",
|
|
"send_secondary_ip_range_if_empty": null,
|
|
"stack_type": "IPV4_ONLY",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMCJ9",
|
|
"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-03T07:08:41.669-08:00",
|
|
"description": "",
|
|
"external_ipv6_prefix": "",
|
|
"fingerprint": null,
|
|
"gateway_address": "10.0.3.1",
|
|
"id": "projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-database-subnet",
|
|
"internal_ipv6_prefix": "",
|
|
"ip_cidr_range": "10.0.3.0/24",
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"log_config": [],
|
|
"name": "fluted-agency-478713-h5-database-subnet",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"private_ip_google_access": false,
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
|
"project": "fluted-agency-478713-h5",
|
|
"purpose": "PRIVATE",
|
|
"region": "europe-west9",
|
|
"role": "",
|
|
"secondary_ip_range": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-database-subnet",
|
|
"send_secondary_ip_range_if_empty": null,
|
|
"stack_type": "IPV4_ONLY",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMCJ9",
|
|
"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-03T07:08:41.668-08:00",
|
|
"description": "",
|
|
"external_ipv6_prefix": "",
|
|
"fingerprint": null,
|
|
"gateway_address": "10.0.1.1",
|
|
"id": "projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-frontend-subnet",
|
|
"internal_ipv6_prefix": "",
|
|
"ip_cidr_range": "10.0.1.0/24",
|
|
"ipv6_access_type": "",
|
|
"ipv6_cidr_range": "",
|
|
"log_config": [],
|
|
"name": "fluted-agency-478713-h5-frontend-subnet",
|
|
"network": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/global/networks/fluted-agency-478713-h5-vpc",
|
|
"private_ip_google_access": false,
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
|
"project": "fluted-agency-478713-h5",
|
|
"purpose": "PRIVATE",
|
|
"region": "europe-west9",
|
|
"role": "",
|
|
"secondary_ip_range": [],
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/fluted-agency-478713-h5/regions/europe-west9/subnetworks/fluted-agency-478713-h5-frontend-subnet",
|
|
"send_secondary_ip_range_if_empty": null,
|
|
"stack_type": "IPV4_ONLY",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"identity_schema_version": 0,
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMCJ9",
|
|
"dependencies": [
|
|
"module.network.google_compute_network.vpc"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|