forked from pierront/but3-iac
575 lines
26 KiB
Plaintext
575 lines
26 KiB
Plaintext
lebreton2005@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-04T02:16:38.185-08:00"
|
|
current_status = "RUNNING"
|
|
deletion_protection = false
|
|
description = null
|
|
effective_labels = {
|
|
"goog-terraform-provisioned" = "true"
|
|
}
|
|
enable_display = false
|
|
hostname = null
|
|
id = "projects/model-cirrus-478713-u8/zones/europe-west9-b/instances/backend"
|
|
instance_id = "6089941171253862761"
|
|
key_revocation_action_type = null
|
|
label_fingerprint = "vezUS-42LLM="
|
|
labels = {}
|
|
machine_type = "e2-micro"
|
|
metadata = {
|
|
"enable-oslogin" = "TRUE"
|
|
}
|
|
metadata_fingerprint = "E0DCJ8z78NE="
|
|
min_cpu_platform = null
|
|
name = "backend"
|
|
project = "model-cirrus-478713-u8"
|
|
resource_policies = []
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/zones/europe-west9-b/instances/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/model-cirrus-478713-u8/zones/europe-west9-b/disks/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_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/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
network_ip = "10.0.2.2"
|
|
nic_type = null
|
|
queue_count = 0
|
|
stack_type = "IPV4_ONLY"
|
|
subnetwork = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/mon-backend"
|
|
subnetwork_project = "model-cirrus-478713-u8"
|
|
}
|
|
|
|
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-04T02:16:38.315-08:00"
|
|
current_status = "RUNNING"
|
|
deletion_protection = false
|
|
description = null
|
|
effective_labels = {
|
|
"goog-terraform-provisioned" = "true"
|
|
}
|
|
enable_display = false
|
|
hostname = null
|
|
id = "projects/model-cirrus-478713-u8/zones/europe-west9-b/instances/database"
|
|
instance_id = "4986431568875413865"
|
|
key_revocation_action_type = null
|
|
label_fingerprint = "vezUS-42LLM="
|
|
labels = {}
|
|
machine_type = "e2-micro"
|
|
metadata = {
|
|
"enable-oslogin" = "TRUE"
|
|
}
|
|
metadata_fingerprint = "E0DCJ8z78NE="
|
|
min_cpu_platform = null
|
|
name = "database"
|
|
project = "model-cirrus-478713-u8"
|
|
resource_policies = []
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/zones/europe-west9-b/instances/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/model-cirrus-478713-u8/zones/europe-west9-b/disks/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/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
network_ip = "10.0.3.2"
|
|
nic_type = null
|
|
queue_count = 0
|
|
stack_type = "IPV4_ONLY"
|
|
subnetwork = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/ma-database"
|
|
subnetwork_project = "model-cirrus-478713-u8"
|
|
}
|
|
|
|
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-04T02:16:38.148-08:00"
|
|
current_status = "RUNNING"
|
|
deletion_protection = false
|
|
description = null
|
|
effective_labels = {
|
|
"goog-terraform-provisioned" = "true"
|
|
}
|
|
enable_display = false
|
|
hostname = null
|
|
id = "projects/model-cirrus-478713-u8/zones/europe-west9-b/instances/frontend"
|
|
instance_id = "3985152319969616233"
|
|
key_revocation_action_type = null
|
|
label_fingerprint = "vezUS-42LLM="
|
|
labels = {}
|
|
machine_type = "e2-micro"
|
|
metadata = {
|
|
"enable-oslogin" = "TRUE"
|
|
}
|
|
metadata_fingerprint = "E0DCJ8z78NE="
|
|
min_cpu_platform = null
|
|
name = "frontend"
|
|
project = "model-cirrus-478713-u8"
|
|
resource_policies = []
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/zones/europe-west9-b/instances/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/model-cirrus-478713-u8/zones/europe-west9-b/disks/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/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
network_ip = "10.0.1.2"
|
|
nic_type = null
|
|
queue_count = 0
|
|
stack_type = "IPV4_ONLY"
|
|
subnetwork = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/mon-frontend"
|
|
subnetwork_project = "model-cirrus-478713-u8"
|
|
|
|
access_config {
|
|
nat_ip = "34.155.93.231"
|
|
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 = "lebreton2005@gmail.com"
|
|
id = "lebreton2005@gmail.com"
|
|
}
|
|
|
|
# module.iam.google_os_login_ssh_public_key.cache:
|
|
resource "google_os_login_ssh_public_key" "cache" {
|
|
expiration_time_usec = null
|
|
fingerprint = "ac98225b3862d6a453e5b2cd5110dfc416e5fb6a1ddb360ed30e13cc7074857e"
|
|
id = "users/lebreton2005@gmail.com/sshPublicKeys/ac98225b3862d6a453e5b2cd5110dfc416e5fb6a1ddb360ed30e13cc7074857e"
|
|
key = <<-EOT
|
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDAxEvlEZ195cpHZlp0JZ0RC64Q1qM3mrFqT7/3VbozCKtBVm7tjPy/df+qwLrLjyNDKsUpQXfV1AgKFtJZCcvsWMkyp75QPsNXvx6sQNxjh09NT+HmcjKd5rqnTpqwyYbXXeLfzqhmpv25dRwc3eE1LbmcREF9uS7ZtTI5R+gcNvOfkWlIgtpxuoUp6o0HUzO0Rdyv/4UYVFwNIQTHimHZv/THSpmxauB0/Y9afks2zqvNCVgn1lIFgdvy4WqXYxRMI2D+9RGijX8EsyUQS3Ed63wBW8rzQCLOepose8jowzL6odqPhZ806GVlU4VWJ+pXxPTmnqNJUnHoXugfjUJX8EhxbTMxNrYVP5ik4SvYzt65BCsIUbQ9TLocjJ72E1Opu0qQ5/VGVEHlMbrboK5gQ035NBxNH7JeC+VMYpmwg2vLexktz2CmaYZdGwD1Wv1pPBN4ob4vJwT4WWdzuImBUm+IVsLM8b6JuhbZoxjwUQTXj0Lsp6jKXQ7yObjfgjc= lebreton2005_gmail_com
|
|
EOT
|
|
project = "model-cirrus-478713-u8"
|
|
user = "lebreton2005@gmail.com"
|
|
}
|
|
|
|
# module.iam.google_project_iam_binding.project_iam:
|
|
resource "google_project_iam_binding" "project_iam" {
|
|
etag = "BwZFHcWba5A="
|
|
id = "model-cirrus-478713-u8/roles/viewer"
|
|
members = [
|
|
"serviceAccount:terraform@model-cirrus-478713-u8.iam.gserviceaccount.com",
|
|
]
|
|
project = "model-cirrus-478713-u8"
|
|
role = "roles/viewer"
|
|
}
|
|
|
|
# module.iam.google_service_account.my_account:
|
|
resource "google_service_account" "my_account" {
|
|
account_id = "terraform"
|
|
description = null
|
|
disabled = false
|
|
display_name = "terraform"
|
|
email = "terraform@model-cirrus-478713-u8.iam.gserviceaccount.com"
|
|
id = "projects/model-cirrus-478713-u8/serviceAccounts/terraform@model-cirrus-478713-u8.iam.gserviceaccount.com"
|
|
member = "serviceAccount:terraform@model-cirrus-478713-u8.iam.gserviceaccount.com"
|
|
name = "projects/model-cirrus-478713-u8/serviceAccounts/terraform@model-cirrus-478713-u8.iam.gserviceaccount.com"
|
|
project = "model-cirrus-478713-u8"
|
|
unique_id = "110729119663247664376"
|
|
}
|
|
|
|
# module.iam.google_service_account_key.key:
|
|
resource "google_service_account_key" "key" {
|
|
id = "projects/model-cirrus-478713-u8/serviceAccounts/terraform@model-cirrus-478713-u8.iam.gserviceaccount.com/keys/5fb1d5a5133b5f9c160555e020f28c5e659981c5"
|
|
key_algorithm = "KEY_ALG_RSA_2048"
|
|
name = "projects/model-cirrus-478713-u8/serviceAccounts/terraform@model-cirrus-478713-u8.iam.gserviceaccount.com/keys/5fb1d5a5133b5f9c160555e020f28c5e659981c5"
|
|
private_key = (sensitive value)
|
|
private_key_type = "TYPE_GOOGLE_CREDENTIALS_FILE"
|
|
public_key = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvVENDQWVXZ0F3SUJBZ0lKQUs1eEFFUm85YjRNTUEwR0NTcUdTSWIzRFFFQkJRVUFNQ0F4SGpBY0JnTlYKQkFNTUZURXhNRGN5T1RFeE9UWTJNekkwTnpZMk5ETTNOakFnRncweU5URXlNRFF4TURFMk1UVmFHQTg1T1RrNQpNVEl6TVRJek5UazFPVm93SURFZU1Cd0dBMVVFQXd3Vk1URXdOekk1TVRFNU5qWXpNalEzTmpZME16YzJNSUlCCklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUF6TVd5bmVvMlFnc1RjcnRZRzN1eElOUWEKNmdNU3RpTzErWmxhYWIvSFdnQW81UllOcjNyTFp4dGI3VlJaOEh0UVhGSW9yQTVFc0lkb285LzVKcUZlZUtmZQpvZms5T3hBUVRHNks2aktoeUJPZ2E2MERIZjJYSTF2RWg2anMwSXEzMVpQUEp4d01OSmluVTdZMEM2KzFIN0EzCjVjRTU5YkJwOUx0ZnJpOUNTVlFHL2JkczUrNmNBdFlyb1daaHJUeWJKNExTQyttTk90dkUwZnZTTU5ZVXlwN0wKcWVWbVRxR0ppcmtVZGVVUStJWThmSnd1MkVOd284V3lFNW95dEI4ZGZQaFpNQUtwNHFWNk5YZGFCa2ZGa0Q2ZQpzNHVab2FCbDU5UmJnZGxJNWxiT0lmTVBGL2ZMb3dUSlYzczJpZUJHZS9QajhGYTdUOVFYK1dCdFZBRkZrUUlECkFRQUJvemd3TmpBTUJnTlZIUk1CQWY4RUFqQUFNQTRHQTFVZER3RUIvd1FFQXdJSGdEQVdCZ05WSFNVQkFmOEUKRERBS0JnZ3JCZ0VGQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFOUWVsV0VIcFYzL0NaNmlHcDU0UgpMa2VaN1R0eThPMEhpZHZBL2MwODBnd0ZpNFhrS2NwM3hKaUszQkUvL2ZJeXBKUDVURHpuWHlCUGhqdkJnSi9vCmVoU2tMMTk2OEZ1QitGdzI0RmM4cEtqL1JQR3NWS252bExJb25mWStXQmFYWTkrSjJRZ0oxR2FOTUhZNjdraU4KZm95SlVUS1BFZTBic1FGcDZmOVhnTHN6dVMzSmdib0ZYa2Via1k5UnAxcVJ6R09iMUtSSU1Jb0lhcktNVU4wOQozMDFNd3NqenhaUVRCZUF2OWxlUjAxRGI2R1RYZHBQSHJnYXZQRDI3T3ptRTlIcFdJbTc1QUxoR2RFb2FzKzZtCi9NS2lteGloa3J2R2ZTUjB3aFlJQmJQWmZCWFUvTHpBeks0c0IzN2tEaFJObEc2bG5HdWpHeEpoNyt3SmJxU2UKc3c9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="
|
|
public_key_type = "TYPE_X509_PEM_FILE"
|
|
service_account_id = "projects/model-cirrus-478713-u8/serviceAccounts/terraform@model-cirrus-478713-u8.iam.gserviceaccount.com"
|
|
valid_after = "2025-12-04T10:16:15Z"
|
|
valid_before = "9999-12-31T23:59:59Z"
|
|
}
|
|
# module.network.google_compute_firewall.backend_firewall:
|
|
resource "google_compute_firewall" "backend_firewall" {
|
|
creation_timestamp = "2025-12-04T02:16:15.852-08:00"
|
|
description = null
|
|
destination_ranges = []
|
|
direction = "INGRESS"
|
|
disabled = false
|
|
id = "projects/model-cirrus-478713-u8/global/firewalls/backend"
|
|
name = "backend"
|
|
network = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
priority = 1000
|
|
project = "model-cirrus-478713-u8"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/firewalls/backend"
|
|
source_ranges = []
|
|
source_service_accounts = []
|
|
source_tags = [
|
|
"frontend",
|
|
]
|
|
target_service_accounts = []
|
|
target_tags = [
|
|
"backend",
|
|
]
|
|
|
|
allow {
|
|
ports = [
|
|
"8000",
|
|
]
|
|
protocol = "tcp"
|
|
}
|
|
}
|
|
|
|
# module.network.google_compute_firewall.database_firewall:
|
|
resource "google_compute_firewall" "database_firewall" {
|
|
creation_timestamp = "2025-12-04T02:16:15.840-08:00"
|
|
description = null
|
|
destination_ranges = []
|
|
direction = "INGRESS"
|
|
disabled = false
|
|
id = "projects/model-cirrus-478713-u8/global/firewalls/database"
|
|
name = "database"
|
|
network = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
priority = 1000
|
|
project = "model-cirrus-478713-u8"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/firewalls/database"
|
|
source_ranges = []
|
|
source_service_accounts = []
|
|
source_tags = [
|
|
"backend",
|
|
]
|
|
target_service_accounts = []
|
|
target_tags = [
|
|
"database",
|
|
]
|
|
|
|
allow {
|
|
ports = [
|
|
"3306",
|
|
]
|
|
protocol = "tcp"
|
|
}
|
|
}
|
|
|
|
# module.network.google_compute_firewall.frontend_firewall:
|
|
resource "google_compute_firewall" "frontend_firewall" {
|
|
creation_timestamp = "2025-12-04T02:16:15.885-08:00"
|
|
description = null
|
|
destination_ranges = []
|
|
direction = "INGRESS"
|
|
disabled = false
|
|
id = "projects/model-cirrus-478713-u8/global/firewalls/frontend"
|
|
name = "frontend"
|
|
network = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
priority = 1000
|
|
project = "model-cirrus-478713-u8"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/firewalls/frontend"
|
|
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_firewall.ssh_firewall:
|
|
resource "google_compute_firewall" "ssh_firewall" {
|
|
creation_timestamp = "2025-12-04T02:16:15.882-08:00"
|
|
description = null
|
|
destination_ranges = []
|
|
direction = "INGRESS"
|
|
disabled = false
|
|
id = "projects/model-cirrus-478713-u8/global/firewalls/ssh"
|
|
name = "ssh"
|
|
network = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
priority = 1000
|
|
project = "model-cirrus-478713-u8"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/firewalls/ssh"
|
|
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_network.vpc:
|
|
resource "google_compute_network" "vpc" {
|
|
auto_create_subnetworks = false
|
|
delete_default_routes_on_create = false
|
|
description = null
|
|
enable_ula_internal_ipv6 = false
|
|
gateway_ipv4 = null
|
|
id = "projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
internal_ipv6_range = null
|
|
mtu = 0
|
|
name = "mon-vpc"
|
|
network_firewall_policy_enforcement_order = "AFTER_CLASSIC_FIREWALL"
|
|
numeric_id = "4219582986583859595"
|
|
project = "model-cirrus-478713-u8"
|
|
routing_mode = "REGIONAL"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
}
|
|
|
|
# module.network.google_compute_subnetwork.backend:
|
|
resource "google_compute_subnetwork" "backend" {
|
|
creation_timestamp = "2025-12-04T02:16:16.470-08:00"
|
|
description = null
|
|
external_ipv6_prefix = null
|
|
gateway_address = "10.0.2.1"
|
|
id = "projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/mon-backend"
|
|
internal_ipv6_prefix = null
|
|
ip_cidr_range = "10.0.2.0/24"
|
|
ipv6_access_type = null
|
|
ipv6_cidr_range = null
|
|
name = "mon-backend"
|
|
network = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
private_ip_google_access = false
|
|
private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS"
|
|
project = "model-cirrus-478713-u8"
|
|
purpose = "PRIVATE"
|
|
region = "europe-west9"
|
|
reserved_internal_range = null
|
|
role = null
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/mon-backend"
|
|
stack_type = "IPV4_ONLY"
|
|
}
|
|
|
|
# module.network.google_compute_subnetwork.database:
|
|
resource "google_compute_subnetwork" "database" {
|
|
creation_timestamp = "2025-12-04T02:16:16.167-08:00"
|
|
description = null
|
|
external_ipv6_prefix = null
|
|
gateway_address = "10.0.3.1"
|
|
id = "projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/ma-database"
|
|
internal_ipv6_prefix = null
|
|
ip_cidr_range = "10.0.3.0/24"
|
|
ipv6_access_type = null
|
|
ipv6_cidr_range = null
|
|
name = "ma-database"
|
|
network = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
private_ip_google_access = false
|
|
private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS"
|
|
project = "model-cirrus-478713-u8"
|
|
purpose = "PRIVATE"
|
|
region = "europe-west9"
|
|
reserved_internal_range = null
|
|
role = null
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/ma-database"
|
|
stack_type = "IPV4_ONLY"
|
|
}
|
|
|
|
# module.network.google_compute_subnetwork.frontend:
|
|
resource "google_compute_subnetwork" "frontend" {
|
|
creation_timestamp = "2025-12-04T02:16:16.146-08:00"
|
|
description = null
|
|
external_ipv6_prefix = null
|
|
gateway_address = "10.0.1.1"
|
|
id = "projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/mon-frontend"
|
|
internal_ipv6_prefix = null
|
|
ip_cidr_range = "10.0.1.0/24"
|
|
ipv6_access_type = null
|
|
ipv6_cidr_range = null
|
|
name = "mon-frontend"
|
|
network = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/global/networks/mon-vpc"
|
|
private_ip_google_access = false
|
|
private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS"
|
|
project = "model-cirrus-478713-u8"
|
|
purpose = "PRIVATE"
|
|
region = "europe-west9"
|
|
reserved_internal_range = null
|
|
role = null
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/mon-frontend"
|
|
stack_type = "IPV4_ONLY"
|
|
}
|
|
|
|
|
|
Outputs:
|
|
|
|
frontend_public_ip = "34.155.93.231"
|
|
instance_internal_ips = {
|
|
backend = "10.0.2.2"
|
|
database = "10.0.3.2"
|
|
frontend = "10.0.1.2"
|
|
}
|
|
instance_names = {
|
|
backend = "backend"
|
|
database = "database"
|
|
frontend = "frontend"
|
|
}
|
|
service_account_email = "terraform@model-cirrus-478713-u8.iam.gserviceaccount.com"
|
|
service_account_key = (sensitive value)
|
|
subnet_ids = {
|
|
backend = "projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/mon-backend"
|
|
database = "projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/ma-database"
|
|
frontend = "projects/model-cirrus-478713-u8/regions/europe-west9/subnetworks/mon-frontend"
|
|
}
|
|
vpc_terraform = "projects/model-cirrus-478713-u8/global/networks/mon-vpc" |