forked from pierront/but3-iac
fin du tp
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.14.1",
|
||||
"serial": 27,
|
||||
"serial": 34,
|
||||
"lineage": "cda21175-fcc8-5d20-f9f0-0bb6b6aa53e7",
|
||||
"outputs": {
|
||||
"backend_instance_name": {
|
||||
@@ -9,7 +9,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"backend_internal_ip": {
|
||||
"value": null,
|
||||
"value": "10.0.2.2",
|
||||
"type": "string"
|
||||
},
|
||||
"backend_subnet_id": {
|
||||
@@ -21,7 +21,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"database_internal_ip": {
|
||||
"value": null,
|
||||
"value": "10.0.3.2",
|
||||
"type": "string"
|
||||
},
|
||||
"database_subnet_id": {
|
||||
@@ -33,11 +33,11 @@
|
||||
"type": "string"
|
||||
},
|
||||
"frontend_internal_ip": {
|
||||
"value": null,
|
||||
"value": "10.0.1.2",
|
||||
"type": "string"
|
||||
},
|
||||
"frontend_public_ip": {
|
||||
"value": null,
|
||||
"value": "34.155.124.130",
|
||||
"type": "string"
|
||||
},
|
||||
"frontend_subnet_id": {
|
||||
@@ -91,6 +91,453 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user