forked from pierront/but3-iac
575 lines
26 KiB
Plaintext
575 lines
26 KiB
Plaintext
james_boutaric@instance-20251203-132555:~/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:17:08.145-08:00"
|
|
current_status = "RUNNING"
|
|
deletion_protection = false
|
|
description = null
|
|
effective_labels = {
|
|
"goog-terraform-provisioned" = "true"
|
|
}
|
|
enable_display = false
|
|
hostname = null
|
|
id = "projects/plenary-plane-478713-q1/zones/europe-west9-b/instances/vm-backend"
|
|
instance_id = "5066344928680669052"
|
|
key_revocation_action_type = null
|
|
label_fingerprint = "vezUS-42LLM="
|
|
labels = {}
|
|
machine_type = "e2-small"
|
|
metadata = {
|
|
"enable-oslogin" = "TRUE"
|
|
}
|
|
metadata_fingerprint = "tuEc5vN0VEk="
|
|
min_cpu_platform = null
|
|
name = "vm-backend"
|
|
project = "plenary-plane-478713-q1"
|
|
resource_policies = []
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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/plenary-plane-478713-q1/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_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/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
network_ip = "10.0.2.2"
|
|
nic_type = null
|
|
queue_count = 0
|
|
stack_type = "IPV4_ONLY"
|
|
subnetwork = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/regions/europe-west9/subnetworks/backend-2"
|
|
subnetwork_project = "plenary-plane-478713-q1"
|
|
}
|
|
|
|
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:17:07.647-08:00"
|
|
current_status = "RUNNING"
|
|
deletion_protection = false
|
|
description = null
|
|
effective_labels = {
|
|
"goog-terraform-provisioned" = "true"
|
|
}
|
|
enable_display = false
|
|
hostname = null
|
|
id = "projects/plenary-plane-478713-q1/zones/europe-west9-b/instances/vm-database"
|
|
instance_id = "5624774978778754940"
|
|
key_revocation_action_type = null
|
|
label_fingerprint = "vezUS-42LLM="
|
|
labels = {}
|
|
machine_type = "e2-small"
|
|
metadata = {
|
|
"enable-oslogin" = "TRUE"
|
|
}
|
|
metadata_fingerprint = "tuEc5vN0VEk="
|
|
min_cpu_platform = null
|
|
name = "vm-database"
|
|
project = "plenary-plane-478713-q1"
|
|
resource_policies = []
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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/plenary-plane-478713-q1/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/plenary-plane-478713-q1/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/plenary-plane-478713-q1/regions/europe-west9/subnetworks/database-2"
|
|
subnetwork_project = "plenary-plane-478713-q1"
|
|
}
|
|
|
|
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:17:07.982-08:00"
|
|
current_status = "RUNNING"
|
|
deletion_protection = false
|
|
description = null
|
|
effective_labels = {
|
|
"goog-terraform-provisioned" = "true"
|
|
}
|
|
enable_display = false
|
|
hostname = null
|
|
id = "projects/plenary-plane-478713-q1/zones/europe-west9-b/instances/vm-frontend"
|
|
instance_id = "30101998634069884"
|
|
key_revocation_action_type = null
|
|
label_fingerprint = "vezUS-42LLM="
|
|
labels = {}
|
|
machine_type = "e2-small"
|
|
metadata = {
|
|
"enable-oslogin" = "TRUE"
|
|
}
|
|
metadata_fingerprint = "tuEc5vN0VEk="
|
|
min_cpu_platform = null
|
|
name = "vm-frontend"
|
|
project = "plenary-plane-478713-q1"
|
|
resource_policies = []
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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/plenary-plane-478713-q1/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/plenary-plane-478713-q1/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/plenary-plane-478713-q1/regions/europe-west9/subnetworks/frontend-2"
|
|
subnetwork_project = "plenary-plane-478713-q1"
|
|
|
|
access_config {
|
|
nat_ip = "34.155.61.127"
|
|
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 = "james.boutaric@gmail.com"
|
|
id = "james.boutaric@gmail.com"
|
|
}
|
|
|
|
# module.iam.google_os_login_ssh_public_key.cache:
|
|
resource "google_os_login_ssh_public_key" "cache" {
|
|
expiration_time_usec = null
|
|
fingerprint = "755c5390990637ae87aa28f3e4b137b026f406fe9243112e50720b03a7c89222"
|
|
id = "users/james.boutaric@gmail.com/sshPublicKeys/755c5390990637ae87aa28f3e4b137b026f406fe9243112e50720b03a7c89222"
|
|
key = <<-EOT
|
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC5LakJaRG9eKWffOScTpY3FepDyumbV/ibnh3DBVsOcsDxoCpW1wPn6n1f3E8gSAtkiGRjP5YyyxoSn9Hmz9KZdtRjuPGyEV6euNb04wxSDjUDKsfnGzQP0n//K0IBkwMM0Xn2rghiVvk2qqnOyq/lxoKPHtFOrgpFg9j65B0d+n5WsMnzT3EjC8sqtLRbHPwQXBaKtNZXwsBlLshWD4l0Xhpj4yGcjlPRkttkiiWoeZtPsl5DDEhidgGExPCjK5UEH4py4/3egHaC4bWRztK3xLP+E5ARs/JhndswhDmWzSe+eoMeoygGbceUSwZt3LN8mn2tKo5AOBDLGFDuZcrN8Ga3hg3LOKntD7ICJOzf8UL2K48BdxJor5TpW2io07moaOnTXsPasXGa9FxOuQRnhuCoA1idJH5WxxSkFTKet56Z87mSEn0J1mub0+t5Mg/+aTbptLy0DFdE2KaQk9YyEAoEPkcbmQtY+TQdWIVhFXJWjHfBwcJSzQfA3J7IBMk= james_boutaric_gmail_com
|
|
EOT
|
|
project = "plenary-plane-478713-q1"
|
|
user = "james.boutaric@gmail.com"
|
|
}
|
|
|
|
# module.iam.google_project_iam_binding.custom_service_account:
|
|
resource "google_project_iam_binding" "custom_service_account" {
|
|
etag = "BwZFHMnT4bM="
|
|
id = "plenary-plane-478713-q1/roles/viewer"
|
|
members = [
|
|
"serviceAccount:terraform@plenary-plane-478713-q1.iam.gserviceaccount.com",
|
|
]
|
|
project = "plenary-plane-478713-q1"
|
|
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@plenary-plane-478713-q1.iam.gserviceaccount.com"
|
|
id = "projects/plenary-plane-478713-q1/serviceAccounts/terraform@plenary-plane-478713-q1.iam.gserviceaccount.com"
|
|
member = "serviceAccount:terraform@plenary-plane-478713-q1.iam.gserviceaccount.com"
|
|
name = "projects/plenary-plane-478713-q1/serviceAccounts/terraform@plenary-plane-478713-q1.iam.gserviceaccount.com"
|
|
project = "plenary-plane-478713-q1"
|
|
unique_id = "101315798248013847366"
|
|
}
|
|
|
|
# module.iam.google_service_account_key.mykey:
|
|
resource "google_service_account_key" "mykey" {
|
|
id = "projects/plenary-plane-478713-q1/serviceAccounts/terraform@plenary-plane-478713-q1.iam.gserviceaccount.com/keys/48a8df232f4dae42e0bfc118b7b143b7050f811e"
|
|
key_algorithm = "KEY_ALG_RSA_2048"
|
|
name = "projects/plenary-plane-478713-q1/serviceAccounts/terraform@plenary-plane-478713-q1.iam.gserviceaccount.com/keys/48a8df232f4dae42e0bfc118b7b143b7050f811e"
|
|
private_key = (sensitive value)
|
|
private_key_type = "TYPE_GOOGLE_CREDENTIALS_FILE"
|
|
public_key = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvRENDQWVTZ0F3SUJBZ0lJZjMzdHMvVStzZkV3RFFZSktvWklodmNOQVFFRkJRQXdJREVlTUJ3R0ExVUUKQXd3Vk1UQXhNekUxTnprNE1qUTRNREV6T0RRM016WTJNQ0FYRFRJMU1USXdOREE1TVRZME5Gb1lEems1T1RreApNak14TWpNMU9UVTVXakFnTVI0d0hBWURWUVFEREJVeE1ERXpNVFUzT1RneU5EZ3dNVE00TkRjek5qWXdnZ0VpCk1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRQ1ZYRzE3Ukw1b2NMaUg4Q1pMNmV0dktOemgKSnJ2M3FvL29uMzZKNEFackJWeU5TdEtQZ0xvT0pBODMxMksxNVNkazMzUjFyNjR6Ky9Zc0tmT21iV1NKTUg2NApBa3ZpTFpXbmhBaVRKQ3dtTkVUQUgwOVRoQzZWa0drQ0lpRGp5MDd1aHJ3cmdLSCtQR3pRbU45NVcyWWxLcU4vCmRDL294bmZ3MDRRSVJaTy80aldWNVlKTWJCME5HaVlONmRFSEMyT3FISjRtd0JhK1dDMEViS1VSRHJyWHpwdUkKOFdPTUVqUTZzeTh1QkhvWFQ4NE1CUEliM0xCVzZGZzZTRFhHRGxubFVpMlgzTjE4OFppMFdZWWtZOXlYNGgrVQpRRnQ0V0NnZGhmaWNCOU95a0x6QkRiRGIvYVpJdjZ6cTBFVHUzQW83V3NscVlSeUNoaHZCeGxTdElBL0hBZ01CCkFBR2pPREEyTUF3R0ExVWRFd0VCL3dRQ01BQXdEZ1lEVlIwUEFRSC9CQVFEQWdlQU1CWUdBMVVkSlFFQi93UU0KTUFvR0NDc0dBUVVGQndNQ01BMEdDU3FHU0liM0RRRUJCUVVBQTRJQkFRQkhyaWxwQ2lyRDZIOUVHM2g0enVlSwpUbmROTmEwUzV6cC9FVmdneG5Ncit5Njg3SU9ucjQzWCtLWjJoZ2RYTTAwNUdJM3VLYStNdGQwMXR0QlRVZW8xCjh1dUpRU1J5WkpVMDBtRnZRbnBhdEtsRGFralBvRDFIdzlvV282Y0lrbGtOdWZiaVRWRk84dmdnTnpXdUtUM3IKckU3NFJXc0FYQTI5SHlZNU03UXl6cGpaRUV3cXVLN2h4aHZOSjRPdzRLemlKUjFOYlBEeU9sdVIxSEVYc1FyYgp4QmpJRmpaVWxWMmNycEdCcEFibXNscitXb2N1WWdFTXFDQU80SXI1Z3FHVFI3VU1yVTQ4L1dkWXJmakhaM0dTCk50bERJK3FSWk5tNmozTG14RmNlZmdkdUZqUlA1Tk9DM243TUxaNnJJdFVkaTkvUnhzTGVnOVlpZldBbWQ2OHoKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="
|
|
public_key_type = "TYPE_X509_PEM_FILE"
|
|
service_account_id = "projects/plenary-plane-478713-q1/serviceAccounts/terraform@plenary-plane-478713-q1.iam.gserviceaccount.com"
|
|
valid_after = "2025-12-04T09:16:44Z"
|
|
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:16:54.310-08:00"
|
|
description = null
|
|
destination_ranges = []
|
|
direction = "INGRESS"
|
|
disabled = false
|
|
id = "projects/plenary-plane-478713-q1/global/firewalls/allow-backend-database-2"
|
|
name = "allow-backend-database-2"
|
|
network = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
priority = 1000
|
|
project = "plenary-plane-478713-q1"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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:16:51.461-08:00"
|
|
description = null
|
|
destination_ranges = []
|
|
direction = "INGRESS"
|
|
disabled = false
|
|
id = "projects/plenary-plane-478713-q1/global/firewalls/allow-frontend-backend-2"
|
|
name = "allow-frontend-backend-2"
|
|
network = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
priority = 1000
|
|
project = "plenary-plane-478713-q1"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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:16:44.506-08:00"
|
|
description = null
|
|
destination_ranges = []
|
|
direction = "INGRESS"
|
|
disabled = false
|
|
id = "projects/plenary-plane-478713-q1/global/firewalls/allow-ssh-all-2"
|
|
name = "allow-ssh-all-2"
|
|
network = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
priority = 1000
|
|
project = "plenary-plane-478713-q1"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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:16:44.417-08:00"
|
|
description = null
|
|
destination_ranges = []
|
|
direction = "INGRESS"
|
|
disabled = false
|
|
id = "projects/plenary-plane-478713-q1/global/firewalls/allow-user-frontend-2"
|
|
name = "allow-user-frontend-2"
|
|
network = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
priority = 1000
|
|
project = "plenary-plane-478713-q1"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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/plenary-plane-478713-q1/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 = "961342017548119966"
|
|
project = "plenary-plane-478713-q1"
|
|
routing_mode = "REGIONAL"
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
}
|
|
|
|
# module.network.google_compute_subnetwork.subnet_backend:
|
|
resource "google_compute_subnetwork" "subnet_backend" {
|
|
creation_timestamp = "2025-12-04T01:16:44.864-08:00"
|
|
description = null
|
|
external_ipv6_prefix = null
|
|
gateway_address = "10.0.2.1"
|
|
id = "projects/plenary-plane-478713-q1/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/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
private_ip_google_access = false
|
|
private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS"
|
|
project = "plenary-plane-478713-q1"
|
|
purpose = "PRIVATE"
|
|
region = "europe-west9"
|
|
reserved_internal_range = null
|
|
role = null
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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:16:44.654-08:00"
|
|
description = null
|
|
external_ipv6_prefix = null
|
|
gateway_address = "10.0.3.1"
|
|
id = "projects/plenary-plane-478713-q1/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/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
private_ip_google_access = false
|
|
private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS"
|
|
project = "plenary-plane-478713-q1"
|
|
purpose = "PRIVATE"
|
|
region = "europe-west9"
|
|
reserved_internal_range = null
|
|
role = null
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/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:16:44.714-08:00"
|
|
description = null
|
|
external_ipv6_prefix = null
|
|
gateway_address = "10.0.1.1"
|
|
id = "projects/plenary-plane-478713-q1/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/plenary-plane-478713-q1/global/networks/vpc-terraform-2"
|
|
private_ip_google_access = false
|
|
private_ipv6_google_access = "DISABLE_GOOGLE_ACCESS"
|
|
project = "plenary-plane-478713-q1"
|
|
purpose = "PRIVATE"
|
|
region = "europe-west9"
|
|
reserved_internal_range = null
|
|
role = null
|
|
self_link = "https://www.googleapis.com/compute/v1/projects/plenary-plane-478713-q1/regions/europe-west9/subnetworks/frontend-2"
|
|
stack_type = "IPV4_ONLY"
|
|
}
|
|
|
|
|
|
Outputs:
|
|
|
|
ip_internes = {
|
|
backend = "10.0.2.2"
|
|
database = "10.0.3.2"
|
|
frontend = "10.0.1.2"
|
|
}
|
|
ip_public_frontend = "34.155.61.127"
|
|
nom_instances = {
|
|
backend = "vm-backend"
|
|
database = "vm-database"
|
|
frontend = "vm-frontend"
|
|
}
|
|
service_account_email = "terraform@plenary-plane-478713-q1.iam.gserviceaccount.com"
|
|
service_account_key = (sensitive value)
|
|
subnets = {
|
|
backend = "projects/plenary-plane-478713-q1/regions/europe-west9/subnetworks/backend-2"
|
|
database = "projects/plenary-plane-478713-q1/regions/europe-west9/subnetworks/database-2"
|
|
frontend = "projects/plenary-plane-478713-q1/regions/europe-west9/subnetworks/frontend-2"
|
|
}
|
|
vpc = "projects/plenary-plane-478713-q1/global/networks/vpc-terraform-2" |