forked from pierront/but3-iac
422 lines
17 KiB
Plaintext
422 lines
17 KiB
Plaintext
|
|
{
|
||
|
|
"version": 4,
|
||
|
|
"terraform_version": "1.14.1",
|
||
|
|
"serial": 14,
|
||
|
|
"lineage": "581c03f7-b4c6-db07-b638-4edf9a9f23cc",
|
||
|
|
"outputs": {
|
||
|
|
"subnet_ids": {
|
||
|
|
"value": {
|
||
|
|
"backend": "projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-backend-subnet",
|
||
|
|
"database": "projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-database-subnet",
|
||
|
|
"frontend": "projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-frontend-subnet"
|
||
|
|
},
|
||
|
|
"type": [
|
||
|
|
"object",
|
||
|
|
{
|
||
|
|
"backend": "string",
|
||
|
|
"database": "string",
|
||
|
|
"frontend": "string"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"vpc_id": {
|
||
|
|
"value": "projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"type": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"resources": [
|
||
|
|
{
|
||
|
|
"mode": "managed",
|
||
|
|
"type": "google_compute_firewall",
|
||
|
|
"name": "fw_backend_to_database_3306",
|
||
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
|
"instances": [
|
||
|
|
{
|
||
|
|
"schema_version": 1,
|
||
|
|
"attributes": {
|
||
|
|
"allow": [
|
||
|
|
{
|
||
|
|
"ports": [
|
||
|
|
"3306"
|
||
|
|
],
|
||
|
|
"protocol": "tcp"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"creation_timestamp": "2025-12-03T07:00:42.443-08:00",
|
||
|
|
"deny": [],
|
||
|
|
"description": "",
|
||
|
|
"destination_ranges": [],
|
||
|
|
"direction": "INGRESS",
|
||
|
|
"disabled": false,
|
||
|
|
"enable_logging": null,
|
||
|
|
"id": "projects/western-diorama-374821/global/firewalls/western-diorama-374821-fw-backend-database-3306",
|
||
|
|
"log_config": [],
|
||
|
|
"name": "western-diorama-374821-fw-backend-database-3306",
|
||
|
|
"network": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"params": [],
|
||
|
|
"priority": 1000,
|
||
|
|
"project": "western-diorama-374821",
|
||
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/firewalls/western-diorama-374821-fw-backend-database-3306",
|
||
|
|
"source_ranges": [
|
||
|
|
"10.0.2.0/24"
|
||
|
|
],
|
||
|
|
"source_service_accounts": [],
|
||
|
|
"source_tags": [],
|
||
|
|
"target_service_accounts": [],
|
||
|
|
"target_tags": [
|
||
|
|
"database"
|
||
|
|
],
|
||
|
|
"timeouts": null
|
||
|
|
},
|
||
|
|
"sensitive_attributes": [],
|
||
|
|
"identity_schema_version": 0,
|
||
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
||
|
|
"dependencies": [
|
||
|
|
"google_compute_network.vpc"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"mode": "managed",
|
||
|
|
"type": "google_compute_firewall",
|
||
|
|
"name": "fw_frontend_to_backend_8000",
|
||
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
|
"instances": [
|
||
|
|
{
|
||
|
|
"schema_version": 1,
|
||
|
|
"attributes": {
|
||
|
|
"allow": [
|
||
|
|
{
|
||
|
|
"ports": [
|
||
|
|
"8000"
|
||
|
|
],
|
||
|
|
"protocol": "tcp"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"creation_timestamp": "2025-12-03T07:00:42.326-08:00",
|
||
|
|
"deny": [],
|
||
|
|
"description": "",
|
||
|
|
"destination_ranges": [],
|
||
|
|
"direction": "INGRESS",
|
||
|
|
"disabled": false,
|
||
|
|
"enable_logging": null,
|
||
|
|
"id": "projects/western-diorama-374821/global/firewalls/western-diorama-374821-fw-frontend-backend-8000",
|
||
|
|
"log_config": [],
|
||
|
|
"name": "western-diorama-374821-fw-frontend-backend-8000",
|
||
|
|
"network": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"params": [],
|
||
|
|
"priority": 1000,
|
||
|
|
"project": "western-diorama-374821",
|
||
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/firewalls/western-diorama-374821-fw-frontend-backend-8000",
|
||
|
|
"source_ranges": [
|
||
|
|
"10.0.1.0/24"
|
||
|
|
],
|
||
|
|
"source_service_accounts": [],
|
||
|
|
"source_tags": [],
|
||
|
|
"target_service_accounts": [],
|
||
|
|
"target_tags": [
|
||
|
|
"backend"
|
||
|
|
],
|
||
|
|
"timeouts": null
|
||
|
|
},
|
||
|
|
"sensitive_attributes": [],
|
||
|
|
"identity_schema_version": 0,
|
||
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
||
|
|
"dependencies": [
|
||
|
|
"google_compute_network.vpc"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"mode": "managed",
|
||
|
|
"type": "google_compute_firewall",
|
||
|
|
"name": "fw_http_https_frontend",
|
||
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
|
"instances": [
|
||
|
|
{
|
||
|
|
"schema_version": 1,
|
||
|
|
"attributes": {
|
||
|
|
"allow": [
|
||
|
|
{
|
||
|
|
"ports": [
|
||
|
|
"80",
|
||
|
|
"443"
|
||
|
|
],
|
||
|
|
"protocol": "tcp"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"creation_timestamp": "2025-12-03T07:00:42.469-08:00",
|
||
|
|
"deny": [],
|
||
|
|
"description": "",
|
||
|
|
"destination_ranges": [],
|
||
|
|
"direction": "INGRESS",
|
||
|
|
"disabled": false,
|
||
|
|
"enable_logging": null,
|
||
|
|
"id": "projects/western-diorama-374821/global/firewalls/western-diorama-374821-fw-http-https-frontend",
|
||
|
|
"log_config": [],
|
||
|
|
"name": "western-diorama-374821-fw-http-https-frontend",
|
||
|
|
"network": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"params": [],
|
||
|
|
"priority": 1000,
|
||
|
|
"project": "western-diorama-374821",
|
||
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/firewalls/western-diorama-374821-fw-http-https-frontend",
|
||
|
|
"source_ranges": [
|
||
|
|
"0.0.0.0/0"
|
||
|
|
],
|
||
|
|
"source_service_accounts": [],
|
||
|
|
"source_tags": [],
|
||
|
|
"target_service_accounts": [],
|
||
|
|
"target_tags": [
|
||
|
|
"frontend"
|
||
|
|
],
|
||
|
|
"timeouts": null
|
||
|
|
},
|
||
|
|
"sensitive_attributes": [],
|
||
|
|
"identity_schema_version": 0,
|
||
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
||
|
|
"dependencies": [
|
||
|
|
"google_compute_network.vpc"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"mode": "managed",
|
||
|
|
"type": "google_compute_firewall",
|
||
|
|
"name": "fw_ssh",
|
||
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
|
"instances": [
|
||
|
|
{
|
||
|
|
"schema_version": 1,
|
||
|
|
"attributes": {
|
||
|
|
"allow": [
|
||
|
|
{
|
||
|
|
"ports": [
|
||
|
|
"22"
|
||
|
|
],
|
||
|
|
"protocol": "tcp"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"creation_timestamp": "2025-12-03T07:00:41.918-08:00",
|
||
|
|
"deny": [],
|
||
|
|
"description": "",
|
||
|
|
"destination_ranges": [],
|
||
|
|
"direction": "INGRESS",
|
||
|
|
"disabled": false,
|
||
|
|
"enable_logging": null,
|
||
|
|
"id": "projects/western-diorama-374821/global/firewalls/western-diorama-374821-fw-ssh",
|
||
|
|
"log_config": [],
|
||
|
|
"name": "western-diorama-374821-fw-ssh",
|
||
|
|
"network": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"params": [],
|
||
|
|
"priority": 1000,
|
||
|
|
"project": "western-diorama-374821",
|
||
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/firewalls/western-diorama-374821-fw-ssh",
|
||
|
|
"source_ranges": [
|
||
|
|
"35.239.249.161/32"
|
||
|
|
],
|
||
|
|
"source_service_accounts": [],
|
||
|
|
"source_tags": [],
|
||
|
|
"target_service_accounts": [],
|
||
|
|
"target_tags": [],
|
||
|
|
"timeouts": null
|
||
|
|
},
|
||
|
|
"sensitive_attributes": [],
|
||
|
|
"identity_schema_version": 0,
|
||
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
|
||
|
|
"dependencies": [
|
||
|
|
"google_compute_network.vpc"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"mode": "managed",
|
||
|
|
"type": "google_compute_network",
|
||
|
|
"name": "vpc",
|
||
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
|
"instances": [
|
||
|
|
{
|
||
|
|
"schema_version": 0,
|
||
|
|
"attributes": {
|
||
|
|
"auto_create_subnetworks": false,
|
||
|
|
"bgp_always_compare_med": false,
|
||
|
|
"bgp_best_path_selection_mode": "LEGACY",
|
||
|
|
"bgp_inter_region_cost": "",
|
||
|
|
"delete_default_routes_on_create": false,
|
||
|
|
"description": "",
|
||
|
|
"enable_ula_internal_ipv6": false,
|
||
|
|
"gateway_ipv4": "",
|
||
|
|
"id": "projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"internal_ipv6_range": "",
|
||
|
|
"mtu": 0,
|
||
|
|
"name": "western-diorama-374821-vpc",
|
||
|
|
"network_firewall_policy_enforcement_order": "AFTER_CLASSIC_FIREWALL",
|
||
|
|
"network_id": "4620399097107312235",
|
||
|
|
"network_profile": "",
|
||
|
|
"numeric_id": "4620399097107312235",
|
||
|
|
"params": [],
|
||
|
|
"project": "western-diorama-374821",
|
||
|
|
"routing_mode": "REGIONAL",
|
||
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"timeouts": null
|
||
|
|
},
|
||
|
|
"sensitive_attributes": [],
|
||
|
|
"identity_schema_version": 0,
|
||
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"mode": "managed",
|
||
|
|
"type": "google_compute_subnetwork",
|
||
|
|
"name": "backend",
|
||
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
|
"instances": [
|
||
|
|
{
|
||
|
|
"schema_version": 0,
|
||
|
|
"attributes": {
|
||
|
|
"creation_timestamp": "2025-12-03T07:01:16.820-08:00",
|
||
|
|
"description": "",
|
||
|
|
"external_ipv6_prefix": "",
|
||
|
|
"fingerprint": null,
|
||
|
|
"gateway_address": "10.0.2.1",
|
||
|
|
"id": "projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-backend-subnet",
|
||
|
|
"internal_ipv6_prefix": "",
|
||
|
|
"ip_cidr_range": "10.0.2.0/24",
|
||
|
|
"ip_collection": null,
|
||
|
|
"ipv6_access_type": "",
|
||
|
|
"ipv6_cidr_range": "",
|
||
|
|
"ipv6_gce_endpoint": "",
|
||
|
|
"log_config": [],
|
||
|
|
"name": "western-diorama-374821-backend-subnet",
|
||
|
|
"network": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"params": [],
|
||
|
|
"private_ip_google_access": false,
|
||
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
||
|
|
"project": "western-diorama-374821",
|
||
|
|
"purpose": "PRIVATE",
|
||
|
|
"region": "us-central1",
|
||
|
|
"reserved_internal_range": "",
|
||
|
|
"role": "",
|
||
|
|
"secondary_ip_range": [],
|
||
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-backend-subnet",
|
||
|
|
"send_secondary_ip_range_if_empty": null,
|
||
|
|
"stack_type": "IPV4_ONLY",
|
||
|
|
"state": "",
|
||
|
|
"subnetwork_id": 2669853550898441811,
|
||
|
|
"timeouts": null
|
||
|
|
},
|
||
|
|
"sensitive_attributes": [],
|
||
|
|
"identity_schema_version": 0,
|
||
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
||
|
|
"dependencies": [
|
||
|
|
"google_compute_network.vpc"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"mode": "managed",
|
||
|
|
"type": "google_compute_subnetwork",
|
||
|
|
"name": "database",
|
||
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
|
"instances": [
|
||
|
|
{
|
||
|
|
"schema_version": 0,
|
||
|
|
"attributes": {
|
||
|
|
"creation_timestamp": "2025-12-03T07:01:16.828-08:00",
|
||
|
|
"description": "",
|
||
|
|
"external_ipv6_prefix": "",
|
||
|
|
"fingerprint": null,
|
||
|
|
"gateway_address": "10.0.3.1",
|
||
|
|
"id": "projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-database-subnet",
|
||
|
|
"internal_ipv6_prefix": "",
|
||
|
|
"ip_cidr_range": "10.0.3.0/24",
|
||
|
|
"ip_collection": null,
|
||
|
|
"ipv6_access_type": "",
|
||
|
|
"ipv6_cidr_range": "",
|
||
|
|
"ipv6_gce_endpoint": "",
|
||
|
|
"log_config": [],
|
||
|
|
"name": "western-diorama-374821-database-subnet",
|
||
|
|
"network": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"params": [],
|
||
|
|
"private_ip_google_access": false,
|
||
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
||
|
|
"project": "western-diorama-374821",
|
||
|
|
"purpose": "PRIVATE",
|
||
|
|
"region": "us-central1",
|
||
|
|
"reserved_internal_range": "",
|
||
|
|
"role": "",
|
||
|
|
"secondary_ip_range": [],
|
||
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-database-subnet",
|
||
|
|
"send_secondary_ip_range_if_empty": null,
|
||
|
|
"stack_type": "IPV4_ONLY",
|
||
|
|
"state": "",
|
||
|
|
"subnetwork_id": 6730786180563856979,
|
||
|
|
"timeouts": null
|
||
|
|
},
|
||
|
|
"sensitive_attributes": [],
|
||
|
|
"identity_schema_version": 0,
|
||
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
||
|
|
"dependencies": [
|
||
|
|
"google_compute_network.vpc"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"mode": "managed",
|
||
|
|
"type": "google_compute_subnetwork",
|
||
|
|
"name": "frontend",
|
||
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
||
|
|
"instances": [
|
||
|
|
{
|
||
|
|
"schema_version": 0,
|
||
|
|
"attributes": {
|
||
|
|
"creation_timestamp": "2025-12-03T07:01:16.765-08:00",
|
||
|
|
"description": "",
|
||
|
|
"external_ipv6_prefix": "",
|
||
|
|
"fingerprint": null,
|
||
|
|
"gateway_address": "10.0.1.1",
|
||
|
|
"id": "projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-frontend-subnet",
|
||
|
|
"internal_ipv6_prefix": "",
|
||
|
|
"ip_cidr_range": "10.0.1.0/24",
|
||
|
|
"ip_collection": null,
|
||
|
|
"ipv6_access_type": "",
|
||
|
|
"ipv6_cidr_range": "",
|
||
|
|
"ipv6_gce_endpoint": "",
|
||
|
|
"log_config": [],
|
||
|
|
"name": "western-diorama-374821-frontend-subnet",
|
||
|
|
"network": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/global/networks/western-diorama-374821-vpc",
|
||
|
|
"params": [],
|
||
|
|
"private_ip_google_access": false,
|
||
|
|
"private_ipv6_google_access": "DISABLE_GOOGLE_ACCESS",
|
||
|
|
"project": "western-diorama-374821",
|
||
|
|
"purpose": "PRIVATE",
|
||
|
|
"region": "us-central1",
|
||
|
|
"reserved_internal_range": "",
|
||
|
|
"role": "",
|
||
|
|
"secondary_ip_range": [],
|
||
|
|
"self_link": "https://www.googleapis.com/compute/v1/projects/western-diorama-374821/regions/us-central1/subnetworks/western-diorama-374821-frontend-subnet",
|
||
|
|
"send_secondary_ip_range_if_empty": null,
|
||
|
|
"stack_type": "IPV4_ONLY",
|
||
|
|
"state": "",
|
||
|
|
"subnetwork_id": 8625767090619280979,
|
||
|
|
"timeouts": null
|
||
|
|
},
|
||
|
|
"sensitive_attributes": [],
|
||
|
|
"identity_schema_version": 0,
|
||
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
||
|
|
"dependencies": [
|
||
|
|
"google_compute_network.vpc"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"check_results": null
|
||
|
|
}
|