1129 lines
50 KiB
Plaintext
1129 lines
50 KiB
Plaintext
|
{
|
||
|
"version": 4,
|
||
|
"terraform_version": "1.10.1",
|
||
|
"serial": 23,
|
||
|
"lineage": "9cd7d550-f3e6-fb7f-5c88-ad81115966f2",
|
||
|
"outputs": {},
|
||
|
"resources": [
|
||
|
{
|
||
|
"mode": "data",
|
||
|
"type": "google_client_openid_userinfo",
|
||
|
"name": "me",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"email": "berger.lu2004@gmail.com",
|
||
|
"id": "berger.lu2004@gmail.com"
|
||
|
},
|
||
|
"sensitive_attributes": []
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"mode": "managed",
|
||
|
"type": "local_file",
|
||
|
"name": "ansible_config",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/local\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"content": "[defaults]\nhost_key_checking = False\ninventory = gcp_compute.yml\ninterpreter_python = auto_silent\nremote_user = berger_lu2004_gmail_com\n\n[inventory]\nenable_plugins = gcp_compute, auto, host_list, yaml, ini, toml, script\n",
|
||
|
"content_base64": null,
|
||
|
"content_base64sha256": "tAyzhXJK2mhmEP/5U+K85Wr+3QAyBabUB8Vdg+lSg/s=",
|
||
|
"content_base64sha512": "PHqpN13EriqXSeJmr//etyU/4sx00X9djyo8s9PnypamsFOA2+c54QbPQwGupDIeu4EwXASPFrEJy+hjlowj+A==",
|
||
|
"content_md5": "893f4531c3ed1544c102f08b00a1158a",
|
||
|
"content_sha1": "ba47568b70bbbed22cf8f66401fb97b55540ee91",
|
||
|
"content_sha256": "b40cb385724ada686610fff953e2bce56afedd003205a6d407c55d83e95283fb",
|
||
|
"content_sha512": "3c7aa9375dc4ae2a9749e266afffdeb7253fe2cc74d17f5d8f2a3cb3d3e7ca96a6b05380dbe739e106cf4301aea4321ebb81305c048f16b109cbe863968c23f8",
|
||
|
"directory_permission": "0777",
|
||
|
"file_permission": "0777",
|
||
|
"filename": "../../../ansible/ansible.cfg",
|
||
|
"id": "ba47568b70bbbed22cf8f66401fb97b55540ee91",
|
||
|
"sensitive_content": null,
|
||
|
"source": null
|
||
|
},
|
||
|
"sensitive_attributes": [
|
||
|
[
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "sensitive_content"
|
||
|
}
|
||
|
]
|
||
|
],
|
||
|
"dependencies": [
|
||
|
"data.google_client_openid_userinfo.me"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"mode": "managed",
|
||
|
"type": "local_file",
|
||
|
"name": "service_account",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/local\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"content": "{\n \"type\": \"service_account\",\n \"project_id\": \"automatisation-tp\",\n \"private_key_id\": \"d6f4f7a06b3bfcdf4e74d1397a781557339f280c\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCgefDwisp+pveD\\nIdNTLIli1p8Sm3ZwAzCCrqOHM3BetK5M5c49NbK7EX32JqKoCmHVB+nxc7guQeXg\\n27n2uYb2EWwucYaRN2FqStkCatGwuFBWnStqo97b4UTkAhOSKiqX0KFp8M8I4RbS\\ncJxJPvnVbKmCCWDPtNBPo5HByQBAx82owB9zoqE0cWi+NmscbLpvbirhp29VxFlf\\ndqvbN3duxp6LrSTQ9pKyRmqOdNHZ0HmMLn4vasuxblmNhwg0Bhzrwqbqs54SDtnb\\nqn8IvPT0/JGlKI1S6EQl6+8z3pKRC2jLc85q6ZAQf8wP7NzL2601CG8Yfo4+Zakx\\nndapZaR9AgMBAAECggEAPmBnuPgZ0bUQzFXfkJrlJBgMaO0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io1lYXCm\\nmbO4NJCzDM7Ov6QgWQQ2UvtZHn1JtDuSE3T9k4ATjogqV0EW7V6K9oYkLnfRQbta\\ng8a5e5tEt8t0mL51lwy4EpaQUvBEynV0c6lv33U3pzScBA/Dvf0vGiVNH7+T17XF\\no3fEi/XS+nAgTzQOEXJ+0BY=\\n-----END PRIVATE KEY-----\\n\",\n \"client_email\": \"terraform@automatisation-tp.iam.gserviceaccount.com\",\n \"client_id\": \"111373189424254920373\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://oauth2.googleapis.com/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/terraform%40automatisation-tp.iam.gserviceaccount.com\",\n \"universe_domain\": \"googleapis.com\"\n}\n",
|
||
|
"content_base64": null,
|
||
|
"content_base64sha256": "35HrgaVJyTReIQxjQVRmGNXq38w9rDQV4hGfR6Il2g8=",
|
||
|
"content_base64sha512": "QzXgpZTsCG4CWAEnJeaaPJRhjpBwdMEU6xYmdFZmGMKlqyp8Atxr5ot4vUTOC9erquBgj8cFWnrwjA+0dEr7/A==",
|
||
|
"content_md5": "cddc05e5b6a3a154a7c5f38f804ad6bf",
|
||
|
"content_sha1": "9c7488a769ef045137ce57195807dc021f0dc5fb",
|
||
|
"content_sha256": "df91eb81a549c9345e210c6341546618d5eadfcc3dac3415e2119f47a225da0f",
|
||
|
"content_sha512": "4335e0a594ec086e0258012725e69a3c94618e907074c114eb162674566618c2a5ab2a7c02dc6be68b78bd44ce0bd7abaae0608fc7055a7af08c0fb4744afbfc",
|
||
|
"directory_permission": "0777",
|
||
|
"file_permission": "0777",
|
||
|
"filename": "../../../ansible/service_account.json",
|
||
|
"id": "9c7488a769ef045137ce57195807dc021f0dc5fb",
|
||
|
"sensitive_content": null,
|
||
|
"source": null
|
||
|
},
|
||
|
"sensitive_attributes": [
|
||
|
[
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "sensitive_content"
|
||
|
}
|
||
|
],
|
||
|
[
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "content"
|
||
|
}
|
||
|
]
|
||
|
],
|
||
|
"dependencies": [
|
||
|
"module.iam.google_service_account.service_account",
|
||
|
"module.iam.google_service_account_key.service_account"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"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-v20241112",
|
||
|
"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/automatisation-tp/zones/us-central1-c/disks/ma-vm-backend"
|
||
|
}
|
||
|
],
|
||
|
"can_ip_forward": false,
|
||
|
"confidential_instance_config": [],
|
||
|
"cpu_platform": "Intel Broadwell",
|
||
|
"creation_timestamp": "2024-12-06T06:58:25.038-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/automatisation-tp/zones/us-central1-c/instances/ma-vm-backend",
|
||
|
"instance_id": "6952280805154402272",
|
||
|
"key_revocation_action_type": "",
|
||
|
"label_fingerprint": "vezUS-42LLM=",
|
||
|
"labels": null,
|
||
|
"machine_type": "e2-micro",
|
||
|
"metadata": {
|
||
|
"enable-oslogin": "TRUE"
|
||
|
},
|
||
|
"metadata_fingerprint": "OiIE0CGQ8WM=",
|
||
|
"metadata_startup_script": null,
|
||
|
"min_cpu_platform": "",
|
||
|
"name": "ma-vm-backend",
|
||
|
"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/automatisation-tp/global/networks/myvpc",
|
||
|
"network_ip": "10.0.2.2",
|
||
|
"nic_type": "",
|
||
|
"queue_count": 0,
|
||
|
"stack_type": "IPV4_ONLY",
|
||
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/regions/us-central1/subnetworks/backend-subnet",
|
||
|
"subnetwork_project": "automatisation-tp"
|
||
|
}
|
||
|
],
|
||
|
"network_performance_config": [],
|
||
|
"params": [],
|
||
|
"project": "automatisation-tp",
|
||
|
"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/automatisation-tp/zones/us-central1-c/instances/ma-vm-backend",
|
||
|
"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": "us-central1-c"
|
||
|
},
|
||
|
"sensitive_attributes": [
|
||
|
[
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "boot_disk"
|
||
|
},
|
||
|
{
|
||
|
"type": "index",
|
||
|
"value": {
|
||
|
"value": 0,
|
||
|
"type": "number"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "disk_encryption_key_raw"
|
||
|
}
|
||
|
]
|
||
|
],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiNiJ9",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc",
|
||
|
"module.network.google_compute_subnetwork.backend_subnet",
|
||
|
"module.network.google_compute_subnetwork.database_subnet",
|
||
|
"module.network.google_compute_subnetwork.frontend_subnet"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"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-v20241112",
|
||
|
"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/automatisation-tp/zones/us-central1-c/disks/ma-vm-database"
|
||
|
}
|
||
|
],
|
||
|
"can_ip_forward": false,
|
||
|
"confidential_instance_config": [],
|
||
|
"cpu_platform": "Intel Broadwell",
|
||
|
"creation_timestamp": "2024-12-06T06:58:24.651-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/automatisation-tp/zones/us-central1-c/instances/ma-vm-database",
|
||
|
"instance_id": "2548239443123154912",
|
||
|
"key_revocation_action_type": "",
|
||
|
"label_fingerprint": "vezUS-42LLM=",
|
||
|
"labels": null,
|
||
|
"machine_type": "e2-micro",
|
||
|
"metadata": {
|
||
|
"enable-oslogin": "TRUE"
|
||
|
},
|
||
|
"metadata_fingerprint": "OiIE0CGQ8WM=",
|
||
|
"metadata_startup_script": null,
|
||
|
"min_cpu_platform": "",
|
||
|
"name": "ma-vm-database",
|
||
|
"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/automatisation-tp/global/networks/myvpc",
|
||
|
"network_ip": "10.0.3.2",
|
||
|
"nic_type": "",
|
||
|
"queue_count": 0,
|
||
|
"stack_type": "IPV4_ONLY",
|
||
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/regions/us-central1/subnetworks/database-subnet",
|
||
|
"subnetwork_project": "automatisation-tp"
|
||
|
}
|
||
|
],
|
||
|
"network_performance_config": [],
|
||
|
"params": [],
|
||
|
"project": "automatisation-tp",
|
||
|
"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/automatisation-tp/zones/us-central1-c/instances/ma-vm-database",
|
||
|
"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": "us-central1-c"
|
||
|
},
|
||
|
"sensitive_attributes": [
|
||
|
[
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "boot_disk"
|
||
|
},
|
||
|
{
|
||
|
"type": "index",
|
||
|
"value": {
|
||
|
"value": 0,
|
||
|
"type": "number"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "disk_encryption_key_raw"
|
||
|
}
|
||
|
]
|
||
|
],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiNiJ9",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc",
|
||
|
"module.network.google_compute_subnetwork.backend_subnet",
|
||
|
"module.network.google_compute_subnetwork.database_subnet",
|
||
|
"module.network.google_compute_subnetwork.frontend_subnet"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"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-v20241112",
|
||
|
"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/automatisation-tp/zones/us-central1-c/disks/ma-vm-frontend"
|
||
|
}
|
||
|
],
|
||
|
"can_ip_forward": false,
|
||
|
"confidential_instance_config": [],
|
||
|
"cpu_platform": "Intel Broadwell",
|
||
|
"creation_timestamp": "2024-12-06T06:58:24.203-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/automatisation-tp/zones/us-central1-c/instances/ma-vm-frontend",
|
||
|
"instance_id": "4195487481358888928",
|
||
|
"key_revocation_action_type": "",
|
||
|
"label_fingerprint": "vezUS-42LLM=",
|
||
|
"labels": null,
|
||
|
"machine_type": "e2-micro",
|
||
|
"metadata": {
|
||
|
"enable-oslogin": "TRUE"
|
||
|
},
|
||
|
"metadata_fingerprint": "OiIE0CGQ8WM=",
|
||
|
"metadata_startup_script": null,
|
||
|
"min_cpu_platform": "",
|
||
|
"name": "ma-vm-frontend",
|
||
|
"network_interface": [
|
||
|
{
|
||
|
"access_config": [
|
||
|
{
|
||
|
"nat_ip": "34.172.11.249",
|
||
|
"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/automatisation-tp/global/networks/myvpc",
|
||
|
"network_ip": "10.0.1.2",
|
||
|
"nic_type": "",
|
||
|
"queue_count": 0,
|
||
|
"stack_type": "IPV4_ONLY",
|
||
|
"subnetwork": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/regions/us-central1/subnetworks/frontend-subnet",
|
||
|
"subnetwork_project": "automatisation-tp"
|
||
|
}
|
||
|
],
|
||
|
"network_performance_config": [],
|
||
|
"params": [],
|
||
|
"project": "automatisation-tp",
|
||
|
"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/automatisation-tp/zones/us-central1-c/instances/ma-vm-frontend",
|
||
|
"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": "us-central1-c"
|
||
|
},
|
||
|
"sensitive_attributes": [
|
||
|
[
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "boot_disk"
|
||
|
},
|
||
|
{
|
||
|
"type": "index",
|
||
|
"value": {
|
||
|
"value": 0,
|
||
|
"type": "number"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "disk_encryption_key_raw"
|
||
|
}
|
||
|
]
|
||
|
],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiNiJ9",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc",
|
||
|
"module.network.google_compute_subnetwork.backend_subnet",
|
||
|
"module.network.google_compute_subnetwork.database_subnet",
|
||
|
"module.network.google_compute_subnetwork.frontend_subnet"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.iam",
|
||
|
"mode": "data",
|
||
|
"type": "google_client_openid_userinfo",
|
||
|
"name": "me",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"email": "berger.lu2004@gmail.com",
|
||
|
"id": "berger.lu2004@gmail.com"
|
||
|
},
|
||
|
"sensitive_attributes": []
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.iam",
|
||
|
"mode": "managed",
|
||
|
"type": "google_os_login_ssh_public_key",
|
||
|
"name": "add_my_key",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"expiration_time_usec": "",
|
||
|
"fingerprint": "048e7e3773d27e1206475729855b76c7e37b5fc8c6125cc26b27b0ef17f905ec",
|
||
|
"id": "users/berger.lu2004@gmail.com/sshPublicKeys/048e7e3773d27e1206475729855b76c7e37b5fc8c6125cc26b27b0ef17f905ec",
|
||
|
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCOsugVgnNQQ/fpshgxpnX1tqGhi/X2veShEaTnb6gPbEtKxKjVo5ygzMp9tBWY2NDOO4xwyA7gfWK/pIpBNcn8g1dDez/Feqn0Wppj5Z//ckVz6kCJFtkrJZwQ3Am3dM3K1fMEhP5EMUXWgrM0M/rLBcX6BjjJj6i0dpkXm9P02zDc2VMyswmEa9dG1H+XJCLtl952oc9z9NrCsQ3ZC9nvdGpm0Qw13QGkx7Bcr1ETPaCRWZROf4beRjf8XjhEUy7WRLPVnebVhXWJD0PvyIuShZqtHD6P3nzkP9aAp1cAMh9PDcWp9ImN5i5/g0Y7wDGEb6duCvNPbgB44+1ea6nEXWjz5nSmKe5ac8qHTzrQS8f/+ti/95vgJf0jDxUoxuxSM6hgexHt3JK7HTY5lui/z1uNfRuTgCqHWIGPIv0Lo69Tg3GFZcUwXpiJeQah5sbwicT6/SFQGvtcxZkdlle5cn7l/sHu+9OOZOHB6CeS2R2WwALGko4BSoUoqOk1trk= berger_lu2004_gmail_com\n",
|
||
|
"project": "automatisation-tp",
|
||
|
"timeouts": null,
|
||
|
"user": "berger.lu2004@gmail.com"
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
||
|
"dependencies": [
|
||
|
"module.iam.data.google_client_openid_userinfo.me"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.iam",
|
||
|
"mode": "managed",
|
||
|
"type": "google_project_iam_binding",
|
||
|
"name": "service_account_roles",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"condition": [],
|
||
|
"etag": "BwYomzG/Bcw=",
|
||
|
"id": "automatisation-tp/roles/viewer",
|
||
|
"members": [
|
||
|
"serviceAccount:terraform@automatisation-tp.iam.gserviceaccount.com"
|
||
|
],
|
||
|
"project": "automatisation-tp",
|
||
|
"role": "roles/viewer"
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "bnVsbA==",
|
||
|
"dependencies": [
|
||
|
"module.iam.google_service_account.service_account"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.iam",
|
||
|
"mode": "managed",
|
||
|
"type": "google_service_account",
|
||
|
"name": "service_account",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"account_id": "terraform",
|
||
|
"create_ignore_already_exists": null,
|
||
|
"description": "",
|
||
|
"disabled": false,
|
||
|
"display_name": "terraform",
|
||
|
"email": "terraform@automatisation-tp.iam.gserviceaccount.com",
|
||
|
"id": "projects/automatisation-tp/serviceAccounts/terraform@automatisation-tp.iam.gserviceaccount.com",
|
||
|
"member": "serviceAccount:terraform@automatisation-tp.iam.gserviceaccount.com",
|
||
|
"name": "projects/automatisation-tp/serviceAccounts/terraform@automatisation-tp.iam.gserviceaccount.com",
|
||
|
"project": "automatisation-tp",
|
||
|
"timeouts": null,
|
||
|
"unique_id": "111373189424254920373"
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9fQ=="
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.iam",
|
||
|
"mode": "managed",
|
||
|
"type": "google_service_account_key",
|
||
|
"name": "service_account",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"id": "projects/automatisation-tp/serviceAccounts/terraform@automatisation-tp.iam.gserviceaccount.com/keys/d6f4f7a06b3bfcdf4e74d1397a781557339f280c",
|
||
|
"keepers": null,
|
||
|
"key_algorithm": "KEY_ALG_RSA_2048",
|
||
|
"name": "projects/automatisation-tp/serviceAccounts/terraform@automatisation-tp.iam.gserviceaccount.com/keys/d6f4f7a06b3bfcdf4e74d1397a781557339f280c",
|
||
|
"private_key": "ewogICJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsCiAgInByb2plY3RfaWQiOiAiYXV0b21hdGlzYXRpb24tdHAiLAogICJwcml2YXRlX2tleV9pZCI6ICJkNmY0ZjdhMDZiM2JmY2RmNGU3NGQxMzk3YTc4MTU1NzMzOWYyODBjIiwKICAicHJpdmF0ZV9rZXkiOiAiLS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tXG5NSUlFdlFJQkFEQU5CZ2txaGtpRzl3MEJBUUVGQUFTQ0JLY3dnZ1NqQWdFQUFvSUJBUUNnZWZEd2lzcCtwdmVEXG5JZE5UTElsaTFwOFNtM1p3QXpDQ3JxT0hNM0JldEs1TTVjNDlOYks3RVgzMkpxS29DbUhWQitueGM3Z3VRZVhnXG4yN24ydVliMkVXd3VjWWFSTjJGcVN0a0NhdEd3dUZCV25TdHFvOTdiNFVUa0FoT1NLaXFYMEtGcDhNOEk0UmJTXG5jSnhKUHZuVmJLbUNDV0RQdE5CUG81SEJ5UUJBeDgyb3dCOXpvc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VZwMHJhcVBlMitGRTVBSVRraW9xbDlDaGFmRFBDT0VXMG5DY1NUNzUxV3lwCmdnbGd6N1RRVDZPUndja0FRTWZOcU1BZmM2S2hOSEZvdmpackhHeTZiMjRxNGFkdlZjUlpYM2FyMnpkM2JzYWUKaTYwazBQYVNza1pxam5UUjJkQjVqQzUrTDJyTHNXNVpqWWNJTkFZYzY4S202ck9lRWc3WjI2cC9DTHowOVB5UgpwU2lOVXVoRUpldnZNOTZTa1F0b3kzUE9hdW1RRUgvTUQremN5OXV0TlFodkdINk9QbVdwTVozV3FXV2tmUUlECkFRQUJvemd3TmpBTUJnTlZIUk1CQWY4RUFqQUFNQTRHQTFVZER3RUIvd1FFQXdJSGdEQVdCZ05WSFNVQkFmOEUKRERBS0JnZ3JCZ0VGQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFXemtDdldxdEhwWFE4Wjd4b01pSgptZk5SdGQzQjhBa1NaazRrY0J4Z2VKQWhpUzZlQ1A1ZDVDRVc1QTlPbnExNWdoOVJ0aVp2QW41N2tZbzAyQllVCmpKQmdKOWtKZlM4TVd5c3dLMGxhNXN1b01KZ0lsbWZ3a01PWnMrRUFGUmoraVZSSzNuNEdMNVIvYXM4TVVVbmIKUHp0YUt3Z1hzZ25UZ0NHYkRiMk1GRHBiU3pPN2tXUmJReExjb2FTY24wazU1OUFMMlFRZXpSbDNwSWNrMVhsagphZHFyNFdNT2xNN05wUktlSFdLOHFTeHA3T2k0aGFCNVY2akp3WDMyRURGSzNLZk1nV1JzZERFaDlCUk82TFdJCjVMblVWYVA2MldycGk3WHZrcnpGazF6SXNXN2pGQTJVU2ZUT3ExK3JtdDNzVEpEQ1FUTGd0MzFEMkpsZkxlRjgKS3c9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==",
|
||
|
"public_key_data": null,
|
||
|
"public_key_type": "TYPE_X509_PEM_FILE",
|
||
|
"service_account_id": "projects/automatisation-tp/serviceAccounts/terraform@automatisation-tp.iam.gserviceaccount.com",
|
||
|
"valid_after": "2024-12-06T14:54:36Z",
|
||
|
"valid_before": "9999-12-31T23:59:59Z"
|
||
|
},
|
||
|
"sensitive_attributes": [
|
||
|
[
|
||
|
{
|
||
|
"type": "get_attr",
|
||
|
"value": "private_key"
|
||
|
}
|
||
|
]
|
||
|
],
|
||
|
"private": "bnVsbA==",
|
||
|
"dependencies": [
|
||
|
"module.iam.google_service_account.service_account"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.network",
|
||
|
"mode": "managed",
|
||
|
"type": "google_compute_firewall",
|
||
|
"name": "allow-sql",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 1,
|
||
|
"attributes": {
|
||
|
"allow": [
|
||
|
{
|
||
|
"ports": [
|
||
|
"3306"
|
||
|
],
|
||
|
"protocol": "tcp"
|
||
|
}
|
||
|
],
|
||
|
"creation_timestamp": "2024-12-06T06:54:36.862-08:00",
|
||
|
"deny": [],
|
||
|
"description": "",
|
||
|
"destination_ranges": [],
|
||
|
"direction": "INGRESS",
|
||
|
"disabled": false,
|
||
|
"enable_logging": null,
|
||
|
"id": "projects/automatisation-tp/global/firewalls/allow-sql",
|
||
|
"log_config": [],
|
||
|
"name": "allow-sql",
|
||
|
"network": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"priority": 1000,
|
||
|
"project": "automatisation-tp",
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/firewalls/allow-sql",
|
||
|
"source_ranges": [
|
||
|
"10.0.2.0/24"
|
||
|
],
|
||
|
"source_service_accounts": [],
|
||
|
"source_tags": [],
|
||
|
"target_service_accounts": [],
|
||
|
"target_tags": [
|
||
|
"web"
|
||
|
],
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.network",
|
||
|
"mode": "managed",
|
||
|
"type": "google_compute_firewall",
|
||
|
"name": "allow_frontend_to_backend",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 1,
|
||
|
"attributes": {
|
||
|
"allow": [
|
||
|
{
|
||
|
"ports": [
|
||
|
"8000"
|
||
|
],
|
||
|
"protocol": "tcp"
|
||
|
}
|
||
|
],
|
||
|
"creation_timestamp": "2024-12-06T06:54:36.885-08:00",
|
||
|
"deny": [],
|
||
|
"description": "",
|
||
|
"destination_ranges": [],
|
||
|
"direction": "INGRESS",
|
||
|
"disabled": false,
|
||
|
"enable_logging": null,
|
||
|
"id": "projects/automatisation-tp/global/firewalls/allow-frontend-to-backend",
|
||
|
"log_config": [],
|
||
|
"name": "allow-frontend-to-backend",
|
||
|
"network": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"priority": 1000,
|
||
|
"project": "automatisation-tp",
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/firewalls/allow-frontend-to-backend",
|
||
|
"source_ranges": [
|
||
|
"10.0.1.0/24"
|
||
|
],
|
||
|
"source_service_accounts": [],
|
||
|
"source_tags": [],
|
||
|
"target_service_accounts": [],
|
||
|
"target_tags": [
|
||
|
"web"
|
||
|
],
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.network",
|
||
|
"mode": "managed",
|
||
|
"type": "google_compute_firewall",
|
||
|
"name": "allow_http",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 1,
|
||
|
"attributes": {
|
||
|
"allow": [
|
||
|
{
|
||
|
"ports": [
|
||
|
"80"
|
||
|
],
|
||
|
"protocol": "tcp"
|
||
|
}
|
||
|
],
|
||
|
"creation_timestamp": "2024-12-06T06:54:36.703-08:00",
|
||
|
"deny": [],
|
||
|
"description": "",
|
||
|
"destination_ranges": [],
|
||
|
"direction": "INGRESS",
|
||
|
"disabled": false,
|
||
|
"enable_logging": null,
|
||
|
"id": "projects/automatisation-tp/global/firewalls/allow-http",
|
||
|
"log_config": [],
|
||
|
"name": "allow-http",
|
||
|
"network": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"priority": 1000,
|
||
|
"project": "automatisation-tp",
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/firewalls/allow-http",
|
||
|
"source_ranges": [
|
||
|
"0.0.0.0/0"
|
||
|
],
|
||
|
"source_service_accounts": [],
|
||
|
"source_tags": [],
|
||
|
"target_service_accounts": [],
|
||
|
"target_tags": [
|
||
|
"web"
|
||
|
],
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.network",
|
||
|
"mode": "managed",
|
||
|
"type": "google_compute_firewall",
|
||
|
"name": "allow_https",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 1,
|
||
|
"attributes": {
|
||
|
"allow": [
|
||
|
{
|
||
|
"ports": [
|
||
|
"443"
|
||
|
],
|
||
|
"protocol": "tcp"
|
||
|
}
|
||
|
],
|
||
|
"creation_timestamp": "2024-12-06T06:54:36.836-08:00",
|
||
|
"deny": [],
|
||
|
"description": "",
|
||
|
"destination_ranges": [],
|
||
|
"direction": "INGRESS",
|
||
|
"disabled": false,
|
||
|
"enable_logging": null,
|
||
|
"id": "projects/automatisation-tp/global/firewalls/allow-https",
|
||
|
"log_config": [],
|
||
|
"name": "allow-https",
|
||
|
"network": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"priority": 1000,
|
||
|
"project": "automatisation-tp",
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/firewalls/allow-https",
|
||
|
"source_ranges": [
|
||
|
"0.0.0.0/0"
|
||
|
],
|
||
|
"source_service_accounts": [],
|
||
|
"source_tags": [],
|
||
|
"target_service_accounts": [],
|
||
|
"target_tags": [
|
||
|
"web"
|
||
|
],
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.network",
|
||
|
"mode": "managed",
|
||
|
"type": "google_compute_firewall",
|
||
|
"name": "allow_ssh",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 1,
|
||
|
"attributes": {
|
||
|
"allow": [
|
||
|
{
|
||
|
"ports": [
|
||
|
"22"
|
||
|
],
|
||
|
"protocol": "tcp"
|
||
|
}
|
||
|
],
|
||
|
"creation_timestamp": "2024-12-06T06:54:36.843-08:00",
|
||
|
"deny": [],
|
||
|
"description": "",
|
||
|
"destination_ranges": [],
|
||
|
"direction": "INGRESS",
|
||
|
"disabled": false,
|
||
|
"enable_logging": null,
|
||
|
"id": "projects/automatisation-tp/global/firewalls/allow-ssh",
|
||
|
"log_config": [],
|
||
|
"name": "allow-ssh",
|
||
|
"network": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"priority": 1000,
|
||
|
"project": "automatisation-tp",
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/firewalls/allow-ssh",
|
||
|
"source_ranges": [
|
||
|
"0.0.0.0/0"
|
||
|
],
|
||
|
"source_service_accounts": [],
|
||
|
"source_tags": [],
|
||
|
"target_service_accounts": [],
|
||
|
"target_tags": [
|
||
|
"ssh"
|
||
|
],
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"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/automatisation-tp/global/networks/myvpc",
|
||
|
"internal_ipv6_range": "",
|
||
|
"mtu": 0,
|
||
|
"name": "myvpc",
|
||
|
"network_firewall_policy_enforcement_order": "AFTER_CLASSIC_FIREWALL",
|
||
|
"numeric_id": "6028642736620351182",
|
||
|
"project": "automatisation-tp",
|
||
|
"routing_mode": "REGIONAL",
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.network",
|
||
|
"mode": "managed",
|
||
|
"type": "google_compute_subnetwork",
|
||
|
"name": "backend_subnet",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"creation_timestamp": "2024-12-06T06:58:02.426-08:00",
|
||
|
"description": "",
|
||
|
"external_ipv6_prefix": "",
|
||
|
"fingerprint": null,
|
||
|
"gateway_address": "10.0.2.1",
|
||
|
"id": "projects/automatisation-tp/regions/us-central1/subnetworks/backend-subnet",
|
||
|
"internal_ipv6_prefix": "",
|
||
|
"ip_cidr_range": "10.0.2.0/24",
|
||
|
"ipv6_access_type": "",
|
||
|
"ipv6_cidr_range": "",
|
||
|
"log_config": [],
|
||
|
"name": "backend-subnet",
|
||
|
"network": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"private_ip_google_access": false,
|
||
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
||
|
"project": "automatisation-tp",
|
||
|
"purpose": "PRIVATE",
|
||
|
"region": "us-central1",
|
||
|
"reserved_internal_range": "",
|
||
|
"role": "",
|
||
|
"secondary_ip_range": [],
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/regions/us-central1/subnetworks/backend-subnet",
|
||
|
"send_secondary_ip_range_if_empty": null,
|
||
|
"stack_type": "IPV4_ONLY",
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.network",
|
||
|
"mode": "managed",
|
||
|
"type": "google_compute_subnetwork",
|
||
|
"name": "database_subnet",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"creation_timestamp": "2024-12-06T06:58:02.371-08:00",
|
||
|
"description": "",
|
||
|
"external_ipv6_prefix": "",
|
||
|
"fingerprint": null,
|
||
|
"gateway_address": "10.0.3.1",
|
||
|
"id": "projects/automatisation-tp/regions/us-central1/subnetworks/database-subnet",
|
||
|
"internal_ipv6_prefix": "",
|
||
|
"ip_cidr_range": "10.0.3.0/24",
|
||
|
"ipv6_access_type": "",
|
||
|
"ipv6_cidr_range": "",
|
||
|
"log_config": [],
|
||
|
"name": "database-subnet",
|
||
|
"network": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"private_ip_google_access": false,
|
||
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
||
|
"project": "automatisation-tp",
|
||
|
"purpose": "PRIVATE",
|
||
|
"region": "us-central1",
|
||
|
"reserved_internal_range": "",
|
||
|
"role": "",
|
||
|
"secondary_ip_range": [],
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/regions/us-central1/subnetworks/database-subnet",
|
||
|
"send_secondary_ip_range_if_empty": null,
|
||
|
"stack_type": "IPV4_ONLY",
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"module": "module.network",
|
||
|
"mode": "managed",
|
||
|
"type": "google_compute_subnetwork",
|
||
|
"name": "frontend_subnet",
|
||
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
"instances": [
|
||
|
{
|
||
|
"schema_version": 0,
|
||
|
"attributes": {
|
||
|
"creation_timestamp": "2024-12-06T06:58:02.414-08:00",
|
||
|
"description": "",
|
||
|
"external_ipv6_prefix": "",
|
||
|
"fingerprint": null,
|
||
|
"gateway_address": "10.0.1.1",
|
||
|
"id": "projects/automatisation-tp/regions/us-central1/subnetworks/frontend-subnet",
|
||
|
"internal_ipv6_prefix": "",
|
||
|
"ip_cidr_range": "10.0.1.0/24",
|
||
|
"ipv6_access_type": "",
|
||
|
"ipv6_cidr_range": "",
|
||
|
"log_config": [],
|
||
|
"name": "frontend-subnet",
|
||
|
"network": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/global/networks/myvpc",
|
||
|
"private_ip_google_access": false,
|
||
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
||
|
"project": "automatisation-tp",
|
||
|
"purpose": "PRIVATE",
|
||
|
"region": "us-central1",
|
||
|
"reserved_internal_range": "",
|
||
|
"role": "",
|
||
|
"secondary_ip_range": [],
|
||
|
"self_link": "https://www.googleapis.com/compute/v1/projects/automatisation-tp/regions/us-central1/subnetworks/frontend-subnet",
|
||
|
"send_secondary_ip_range_if_empty": null,
|
||
|
"stack_type": "IPV4_ONLY",
|
||
|
"timeouts": null
|
||
|
},
|
||
|
"sensitive_attributes": [],
|
||
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
||
|
"dependencies": [
|
||
|
"module.network.google_compute_network.vpc"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"check_results": null
|
||
|
}
|