wiloubrigitte27@instance2:~/but3-iac/terraform/environments/dev$ terraform show # module.compute.google_compute_instance.vm_backend: resource "google_compute_instance" "vm_backend" { can_ip_forward = false cpu_platform = "Intel Broadwell" creation_timestamp = "2025-12-04T01:53:51.408-08:00" current_status = "RUNNING" deletion_protection = false description = null effective_labels = { "goog-terraform-provisioned" = "true" } enable_display = false hostname = null id = "projects/fourth-palisade-478713-i3/zones/europe-west9-b/instances/vm-backend" instance_id = "1979785403172709568" key_revocation_action_type = null label_fingerprint = "vezUS-42LLM=" machine_type = "e2-small" metadata = { "enable-oslogin" = "TRUE" } metadata_fingerprint = "Uaz2pYwZ75g=" min_cpu_platform = null name = "vm-backend" project = "fourth-palisade-478713-i3" self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/zones/europe-west9-b/instances/vm-backend" tags = [ "backend", "ssh", ] tags_fingerprint = "N2bbCLFli_k=" terraform_labels = { "goog-terraform-provisioned" = "true" } zone = "europe-west9-b" boot_disk { auto_delete = true device_name = "persistent-disk-0" disk_encryption_key_raw = (sensitive value) disk_encryption_key_sha256 = null interface = null kms_key_self_link = null mode = "READ_WRITE" source = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/zones/europe-west9-b/disks/vm-backend" 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_policies = [] size = 10 storage_pool = null type = "pd-standard" } } network_interface { internal_ipv6_prefix_length = 0 ipv6_access_type = null ipv6_address = null name = "nic0" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" network_ip = "10.0.2.3" nic_type = null queue_count = 0 stack_type = "IPV4_ONLY" subnetwork = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/backend-2" subnetwork_project = "fourth-palisade-478713-i3" } scheduling { automatic_restart = true instance_termination_action = null min_node_cpus = 0 on_host_maintenance = "MIGRATE" preemptible = false provisioning_model = "STANDARD" } shielded_instance_config { enable_integrity_monitoring = true enable_secure_boot = false enable_vtpm = true } } # module.compute.google_compute_instance.vm_database: resource "google_compute_instance" "vm_database" { can_ip_forward = false cpu_platform = "Intel Broadwell" creation_timestamp = "2025-12-04T01:03:37.582-08:00" current_status = "RUNNING" deletion_protection = false description = null effective_labels = { "goog-terraform-provisioned" = "true" } enable_display = false hostname = null id = "projects/fourth-palisade-478713-i3/zones/europe-west9-b/instances/vm-database" instance_id = "1195828149370024070" key_revocation_action_type = null label_fingerprint = "vezUS-42LLM=" labels = {} machine_type = "e2-small" metadata = { "enable-oslogin" = "TRUE" } metadata_fingerprint = "Uaz2pYwZ75g=" min_cpu_platform = null name = "vm-database" project = "fourth-palisade-478713-i3" resource_policies = [] self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/zones/europe-west9-b/instances/vm-database" tags = [ "database", "ssh", ] tags_fingerprint = "22sTRfPQYj4=" terraform_labels = { "goog-terraform-provisioned" = "true" } zone = "europe-west9-b" boot_disk { auto_delete = true device_name = "persistent-disk-0" disk_encryption_key_raw = (sensitive value) disk_encryption_key_sha256 = null interface = null kms_key_self_link = null mode = "READ_WRITE" source = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/zones/europe-west9-b/disks/vm-database" 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 = {} resource_policies = [] size = 20 storage_pool = null type = "pd-standard" } } network_interface { internal_ipv6_prefix_length = 0 ipv6_access_type = null ipv6_address = null name = "nic0" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" network_ip = "10.0.3.2" nic_type = null queue_count = 0 stack_type = "IPV4_ONLY" subnetwork = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/database-2" subnetwork_project = "fourth-palisade-478713-i3" } scheduling { automatic_restart = true instance_termination_action = null min_node_cpus = 0 on_host_maintenance = "MIGRATE" preemptible = false provisioning_model = "STANDARD" } shielded_instance_config { enable_integrity_monitoring = true enable_secure_boot = false enable_vtpm = true } } # module.compute.google_compute_instance.vm_frontend: resource "google_compute_instance" "vm_frontend" { can_ip_forward = false cpu_platform = "Intel Broadwell" creation_timestamp = "2025-12-04T01:03:37.589-08:00" current_status = "RUNNING" deletion_protection = false description = null effective_labels = { "goog-terraform-provisioned" = "true" } enable_display = false hostname = null id = "projects/fourth-palisade-478713-i3/zones/europe-west9-b/instances/vm-frontend" instance_id = "4863280159121010822" key_revocation_action_type = null label_fingerprint = "vezUS-42LLM=" labels = {} machine_type = "e2-small" metadata = { "enable-oslogin" = "TRUE" } metadata_fingerprint = "Uaz2pYwZ75g=" min_cpu_platform = null name = "vm-frontend" project = "fourth-palisade-478713-i3" resource_policies = [] self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/zones/europe-west9-b/instances/vm-frontend" tags = [ "frontend", "ssh", ] tags_fingerprint = "sermMtqzdso=" terraform_labels = { "goog-terraform-provisioned" = "true" } zone = "europe-west9-b" boot_disk { auto_delete = true device_name = "persistent-disk-0" disk_encryption_key_raw = (sensitive value) disk_encryption_key_sha256 = null interface = null kms_key_self_link = null mode = "READ_WRITE" source = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/zones/europe-west9-b/disks/vm-frontend" 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 = {} resource_policies = [] size = 10 storage_pool = null type = "pd-standard" } } network_interface { internal_ipv6_prefix_length = 0 ipv6_access_type = null ipv6_address = null name = "nic0" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" network_ip = "10.0.1.2" nic_type = null queue_count = 0 stack_type = "IPV4_ONLY" subnetwork = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/frontend-2" subnetwork_project = "fourth-palisade-478713-i3" access_config { nat_ip = "34.155.69.67" network_tier = "PREMIUM" public_ptr_domain_name = null } } scheduling { automatic_restart = true instance_termination_action = null min_node_cpus = 0 on_host_maintenance = "MIGRATE" preemptible = false provisioning_model = "STANDARD" } shielded_instance_config { enable_integrity_monitoring = true enable_secure_boot = false enable_vtpm = true } } # module.iam.data.google_client_openid_userinfo.me: data "google_client_openid_userinfo" "me" { email = "wiloubrigitte27@gmail.com" id = "wiloubrigitte27@gmail.com" } # module.iam.google_os_login_ssh_public_key.cache: resource "google_os_login_ssh_public_key" "cache" { expiration_time_usec = null fingerprint = "ee639fbe3d5dea5140a062dcce67cb21e04d5611d8c7666a51f20fd21635e0ef" id = "users/wiloubrigitte27@gmail.com/sshPublicKeys/ee639fbe3d5dea5140a062dcce67cb21e04d5611d8c7666a51f20fd21635e0ef" key = <<-EOT ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDQwlNubM32w7K/q9roiLKYf/t/YvkjQ+eZhHAu/EExYPuAvFXUTRxNiCU4FHKyS4IcAtYKVA0/Uz5GXd0AUqKF4yDAazfYuWa90xdx0rEVch3N/ITmJ05J0ozN+Ssw1xv2BZY1N0bDFfWaWoarC++WpJoWfuankf4GnNwfJ/vRecFfU2OJOp1S/OxuqI7N+aHL/XBEeAXLS1RDVDfehakESaJdsUFHkQ+Fk7/YIIfMWy21S3y8ZC6st6mRSYZl1ebwz+7n24dNM/O16vWbDDOhjN/sNuh7HkzBm4jnAC9ar/Rv2zXLWNIXm99NFuJZ8ETtelM613RchzjkTMIVm1wgPVSrWsYz/b18EA1lAeraYzne4UIQBYMIF886tOWeXwDqQgwt7M0nMb/dD/cs8GA41XeJM4u3ckenl8g8bqZ7f2ijVwS9uPigxv6KGTr209DL7EIZQ4EnwLosvfG4WoG1eDF8GWZNb/rdGkmUe8DPOuvawXW3/LFp0YCBtSXjoYM= wiloubrigitte27_gmail_com EOT project = "fourth-palisade-478713-i3" user = "wiloubrigitte27@gmail.com" } # module.iam.google_project_iam_binding.custom_service_account: resource "google_project_iam_binding" "custom_service_account" { etag = "BwZFHIPAiHg=" id = "fourth-palisade-478713-i3/roles/viewer" members = [ "serviceAccount:terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com", ] project = "fourth-palisade-478713-i3" role = "roles/viewer" } # module.iam.google_service_account.service_account: resource "google_service_account" "service_account" { account_id = "terraform" description = null disabled = false display_name = "terraform" email = "terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com" id = "projects/fourth-palisade-478713-i3/serviceAccounts/terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com" member = "serviceAccount:terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com" name = "projects/fourth-palisade-478713-i3/serviceAccounts/terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com" project = "fourth-palisade-478713-i3" unique_id = "105936883151570613651" } # module.iam.google_service_account_key.mykey: resource "google_service_account_key" "mykey" { id = "projects/fourth-palisade-478713-i3/serviceAccounts/terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com/keys/7313649fc0042e8b454c5c71b86743f9a2ec6b34" key_algorithm = "KEY_ALG_RSA_2048" name = "projects/fourth-palisade-478713-i3/serviceAccounts/terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com/keys/7313649fc0042e8b454c5c71b86743f9a2ec6b34" private_key = (sensitive value) private_key_type = "TYPE_GOOGLE_CREDENTIALS_FILE" public_key = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvRENDQWVTZ0F3SUJBZ0lJQzAyRjlzWTV3ZFV3RFFZSktvWklodmNOQVFFRkJRQXdJREVlTUJ3R0ExVUUKQXd3Vk1UQTFPVE0yT0Rnek1UVXhOVGN3TmpFek5qVXhNQ0FYRFRJMU1USXdOREE0TlRj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szM3VZd29aS2ZkUHFoSjNud1MwanpUNXdNRW01SkZjREJyMWF1bGFQdTY5SWZaQkRCSldJNW1BM0szL0dmCllGTHU2Nm1zMVNKT3VHeGNZbk5WdHJ3ait1K2J6OFVCZlQxd3NwcDNKVGVJc2NtSkpQdkdPSDN1cHJjTjJtT1YKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=" public_key_type = "TYPE_X509_PEM_FILE" service_account_id = "projects/fourth-palisade-478713-i3/serviceAccounts/terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com" valid_after = "2025-12-04T08:57:08Z" valid_before = "9999-12-31T23:59:59Z" } # module.network.google_compute_firewall.allow_backend_database: resource "google_compute_firewall" "allow_backend_database" { creation_timestamp = "2025-12-04T01:03:14.934-08:00" description = null destination_ranges = [] direction = "INGRESS" disabled = false id = "projects/fourth-palisade-478713-i3/global/firewalls/allow-backend-database-2" name = "allow-backend-database-2" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" priority = 1000 project = "fourth-palisade-478713-i3" self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/firewalls/allow-backend-database-2" source_ranges = [] source_service_accounts = [] source_tags = [ "backend", ] target_service_accounts = [] target_tags = [ "database", ] allow { ports = [ "3306", ] protocol = "tcp" } } # module.network.google_compute_firewall.allow_frontend_backend: resource "google_compute_firewall" "allow_frontend_backend" { creation_timestamp = "2025-12-04T01:03:14.927-08:00" description = null destination_ranges = [] direction = "INGRESS" disabled = false id = "projects/fourth-palisade-478713-i3/global/firewalls/allow-frontend-backend-2" name = "allow-frontend-backend-2" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" priority = 1000 project = "fourth-palisade-478713-i3" self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/firewalls/allow-frontend-backend-2" source_ranges = [] source_service_accounts = [] source_tags = [ "frontend", ] target_service_accounts = [] target_tags = [ "backend", ] allow { ports = [ "8000", ] protocol = "tcp" } } # module.network.google_compute_firewall.allow_ssh_all: resource "google_compute_firewall" "allow_ssh_all" { creation_timestamp = "2025-12-04T01:05:00.388-08:00" description = null destination_ranges = [] direction = "INGRESS" disabled = false id = "projects/fourth-palisade-478713-i3/global/firewalls/allow-ssh-all-2" name = "allow-ssh-all-2" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" priority = 1000 project = "fourth-palisade-478713-i3" self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/firewalls/allow-ssh-all-2" source_ranges = [ "0.0.0.0/0", ] source_service_accounts = [] source_tags = [] target_service_accounts = [] target_tags = [ "ssh", ] allow { ports = [ "22", ] protocol = "tcp" } } # module.network.google_compute_firewall.allow_user_frontend: resource "google_compute_firewall" "allow_user_frontend" { creation_timestamp = "2025-12-04T01:03:14.510-08:00" description = null destination_ranges = [] direction = "INGRESS" disabled = false id = "projects/fourth-palisade-478713-i3/global/firewalls/allow-user-frontend-2" name = "allow-user-frontend-2" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" priority = 1000 project = "fourth-palisade-478713-i3" self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/firewalls/allow-user-frontend-2" source_ranges = [ "0.0.0.0/0", ] source_service_accounts = [] source_tags = [] target_service_accounts = [] target_tags = [ "frontend", ] allow { ports = [ "80", "443", ] protocol = "tcp" } } # module.network.google_compute_network.vpc_terraform: resource "google_compute_network" "vpc_terraform" { auto_create_subnetworks = false delete_default_routes_on_create = false description = null enable_ula_internal_ipv6 = false gateway_ipv4 = null id = "projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" internal_ipv6_range = null mtu = 0 name = "vpc-terraform-2" network_firewall_policy_enforcement_order = "AFTER_CLASSIC_FIREWALL" numeric_id = "7223450660633375654" project = "fourth-palisade-478713-i3" routing_mode = "REGIONAL" self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" } # module.network.google_compute_subnetwork.subnet_backend: resource "google_compute_subnetwork" "subnet_backend" { creation_timestamp = "2025-12-04T01:03:14.805-08:00" description = null external_ipv6_prefix = null gateway_address = "10.0.2.1" id = "projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/backend-2" internal_ipv6_prefix = null ip_cidr_range = "10.0.2.0/24" ipv6_access_type = null ipv6_cidr_range = null name = "backend-2" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" private_ip_google_access = false private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS" project = "fourth-palisade-478713-i3" purpose = "PRIVATE" region = "europe-west9" reserved_internal_range = null role = null self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/backend-2" stack_type = "IPV4_ONLY" } # module.network.google_compute_subnetwork.subnet_database: resource "google_compute_subnetwork" "subnet_database" { creation_timestamp = "2025-12-04T01:03:14.868-08:00" description = null external_ipv6_prefix = null gateway_address = "10.0.3.1" id = "projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/database-2" internal_ipv6_prefix = null ip_cidr_range = "10.0.3.0/24" ipv6_access_type = null ipv6_cidr_range = null name = "database-2" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" private_ip_google_access = false private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS" project = "fourth-palisade-478713-i3" purpose = "PRIVATE" region = "europe-west9" reserved_internal_range = null role = null self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/database-2" stack_type = "IPV4_ONLY" } # module.network.google_compute_subnetwork.subnet_frontend: resource "google_compute_subnetwork" "subnet_frontend" { creation_timestamp = "2025-12-04T01:03:15.638-08:00" description = null external_ipv6_prefix = null gateway_address = "10.0.1.1" id = "projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/frontend-2" internal_ipv6_prefix = null ip_cidr_range = "10.0.1.0/24" ipv6_access_type = null ipv6_cidr_range = null name = "frontend-2" network = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2" private_ip_google_access = false private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS" project = "fourth-palisade-478713-i3" purpose = "PRIVATE" region = "europe-west9" reserved_internal_range = null role = null self_link = "https://www.googleapis.com/compute/v1/projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/frontend-2" stack_type = "IPV4_ONLY" } Outputs: ip_internes = { backend = "10.0.2.3" database = "10.0.3.2" frontend = "10.0.1.2" } ip_public_frontend = "34.155.69.67" nom_instances = { backend = "vm-backend" database = "vm-database" frontend = "vm-frontend" } service_account_email = "terraform@fourth-palisade-478713-i3.iam.gserviceaccount.com" service_account_key = (sensitive value) subnets = { backend = "projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/backend-2" database = "projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/database-2" frontend = "projects/fourth-palisade-478713-i3/regions/europe-west9/subnetworks/frontend-2" } vpc = "projects/fourth-palisade-478713-i3/global/networks/vpc-terraform-2"