355 lines
12 KiB
JSON
355 lines
12 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.10.1",
|
|
"serial": 54,
|
|
"lineage": "a183cd95-f987-8698-c6dd-84e933c394a5",
|
|
"outputs": {
|
|
"cloud_run_url": {
|
|
"value": "https://sereact-p64zpdtkta-uc.a.run.app",
|
|
"type": "string"
|
|
},
|
|
"container_registry_url": {
|
|
"value": "gcr.io/gen-lang-client-0424120530/sereact",
|
|
"type": "string"
|
|
},
|
|
"firestore_database_id": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"pubsub_dlq_topic_name": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"pubsub_subscription_name": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"pubsub_topic_name": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"qdrant_grpc_endpoint": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"qdrant_http_endpoint": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"storage_bucket_name": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"vector_db_vm_external_ip": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"vector_db_vm_internal_ip": {
|
|
"value": null,
|
|
"type": "string"
|
|
},
|
|
"vector_db_vm_name": {
|
|
"value": null,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"mode": "data",
|
|
"type": "google_project",
|
|
"name": "current",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"auto_create_network": null,
|
|
"billing_account": "00CA97-62E5BD-4A62B5",
|
|
"deletion_policy": "PREVENT",
|
|
"effective_labels": {
|
|
"generative-language": "enabled"
|
|
},
|
|
"folder_id": null,
|
|
"id": "projects/gen-lang-client-0424120530",
|
|
"labels": {
|
|
"generative-language": "enabled"
|
|
},
|
|
"name": "Gemini API",
|
|
"number": "761163285547",
|
|
"org_id": null,
|
|
"project_id": "gen-lang-client-0424120530",
|
|
"tags": null,
|
|
"terraform_labels": {
|
|
"generative-language": "enabled"
|
|
}
|
|
},
|
|
"sensitive_attributes": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_cloud_run_service",
|
|
"name": "sereact",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 2,
|
|
"attributes": {
|
|
"autogenerate_revision_name": false,
|
|
"id": "locations/us-central1/namespaces/gen-lang-client-0424120530/services/sereact",
|
|
"location": "us-central1",
|
|
"metadata": [
|
|
{
|
|
"annotations": {},
|
|
"effective_annotations": {
|
|
"run.googleapis.com/ingress": "all",
|
|
"run.googleapis.com/ingress-status": "all",
|
|
"run.googleapis.com/operation-id": "d2cc9d17-1252-4660-a3c8-d5c20351c717",
|
|
"run.googleapis.com/urls": "[\"https://sereact-761163285547.us-central1.run.app\",\"https://sereact-p64zpdtkta-uc.a.run.app\"]",
|
|
"serving.knative.dev/creator": "johnpccd3@gmail.com",
|
|
"serving.knative.dev/lastModifier": "johnpccd3@gmail.com"
|
|
},
|
|
"effective_labels": {
|
|
"cloud.googleapis.com/location": "us-central1"
|
|
},
|
|
"generation": 3,
|
|
"labels": {},
|
|
"namespace": "gen-lang-client-0424120530",
|
|
"resource_version": "AAY12wTEYMI",
|
|
"self_link": "/apis/serving.knative.dev/v1/namespaces/761163285547/services/sereact",
|
|
"terraform_labels": {},
|
|
"uid": "3825dcdf-9b6b-4f9c-bc6d-2434a25e141b"
|
|
}
|
|
],
|
|
"name": "sereact",
|
|
"project": "gen-lang-client-0424120530",
|
|
"status": [
|
|
{
|
|
"conditions": [
|
|
{
|
|
"message": "",
|
|
"reason": "",
|
|
"status": "True",
|
|
"type": "Ready"
|
|
},
|
|
{
|
|
"message": "",
|
|
"reason": "",
|
|
"status": "True",
|
|
"type": "ConfigurationsReady"
|
|
},
|
|
{
|
|
"message": "",
|
|
"reason": "",
|
|
"status": "True",
|
|
"type": "RoutesReady"
|
|
}
|
|
],
|
|
"latest_created_revision_name": "sereact-00001-nnx",
|
|
"latest_ready_revision_name": "sereact-00001-nnx",
|
|
"observed_generation": 3,
|
|
"traffic": [
|
|
{
|
|
"latest_revision": true,
|
|
"percent": 100,
|
|
"revision_name": "sereact-00001-nnx",
|
|
"tag": "",
|
|
"url": ""
|
|
}
|
|
],
|
|
"url": "https://sereact-p64zpdtkta-uc.a.run.app"
|
|
}
|
|
],
|
|
"template": [
|
|
{
|
|
"metadata": [
|
|
{
|
|
"annotations": {
|
|
"autoscaling.knative.dev/maxScale": "3"
|
|
},
|
|
"generation": 0,
|
|
"labels": {
|
|
"run.googleapis.com/startupProbeType": "Custom"
|
|
},
|
|
"name": "",
|
|
"namespace": "",
|
|
"resource_version": "",
|
|
"self_link": "",
|
|
"uid": ""
|
|
}
|
|
],
|
|
"spec": [
|
|
{
|
|
"container_concurrency": 80,
|
|
"containers": [
|
|
{
|
|
"args": [],
|
|
"command": [],
|
|
"env": [
|
|
{
|
|
"name": "API_KEY_SECRET",
|
|
"value": "",
|
|
"value_from": [
|
|
{
|
|
"secret_key_ref": [
|
|
{
|
|
"key": "latest",
|
|
"name": "sereact-api-key-secret"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "FIRESTORE_CREDENTIALS_FILE",
|
|
"value": "/var/secrets/google/key.json",
|
|
"value_from": []
|
|
},
|
|
{
|
|
"name": "FIRESTORE_PROJECT_ID",
|
|
"value": "gen-lang-client-0424120530",
|
|
"value_from": []
|
|
},
|
|
{
|
|
"name": "GCS_BUCKET_NAME",
|
|
"value": "gen-lang-client-0424120530-images",
|
|
"value_from": []
|
|
},
|
|
{
|
|
"name": "GOOGLE_APPLICATION_CREDENTIALS",
|
|
"value": "/var/secrets/google/key.json",
|
|
"value_from": []
|
|
},
|
|
{
|
|
"name": "LOG_LEVEL",
|
|
"value": "INFO",
|
|
"value_from": []
|
|
},
|
|
{
|
|
"name": "VECTOR_DB_API_KEY",
|
|
"value": "",
|
|
"value_from": [
|
|
{
|
|
"secret_key_ref": [
|
|
{
|
|
"key": "latest",
|
|
"name": "sereact-vector-db-key"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "VECTOR_DB_ENVIRONMENT",
|
|
"value": "gcp-starter",
|
|
"value_from": []
|
|
},
|
|
{
|
|
"name": "VECTOR_DB_INDEX_NAME",
|
|
"value": "image-embeddings",
|
|
"value_from": []
|
|
}
|
|
],
|
|
"env_from": [],
|
|
"image": "gcr.io/gen-lang-client-0424120530/sereact-api:latest",
|
|
"liveness_probe": [],
|
|
"name": "",
|
|
"ports": [
|
|
{
|
|
"container_port": 8000,
|
|
"name": "http1",
|
|
"protocol": ""
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"limits": {
|
|
"cpu": "1",
|
|
"memory": "1Gi"
|
|
},
|
|
"requests": {}
|
|
}
|
|
],
|
|
"startup_probe": [
|
|
{
|
|
"failure_threshold": 10,
|
|
"grpc": [],
|
|
"http_get": [
|
|
{
|
|
"http_headers": [],
|
|
"path": "/",
|
|
"port": 8000
|
|
}
|
|
],
|
|
"initial_delay_seconds": 20,
|
|
"period_seconds": 5,
|
|
"tcp_socket": [],
|
|
"timeout_seconds": 1
|
|
}
|
|
],
|
|
"volume_mounts": [
|
|
{
|
|
"mount_path": "/var/secrets/google",
|
|
"name": "gcp-sa-key"
|
|
}
|
|
],
|
|
"working_dir": ""
|
|
}
|
|
],
|
|
"node_selector": {},
|
|
"service_account_name": "761163285547-compute@developer.gserviceaccount.com",
|
|
"serving_state": "",
|
|
"timeout_seconds": 300,
|
|
"volumes": [
|
|
{
|
|
"csi": [],
|
|
"empty_dir": [],
|
|
"name": "gcp-sa-key",
|
|
"nfs": [],
|
|
"secret": [
|
|
{
|
|
"default_mode": 0,
|
|
"items": [
|
|
{
|
|
"key": "latest",
|
|
"mode": 0,
|
|
"path": "key.json"
|
|
}
|
|
],
|
|
"secret_name": "sereact-gcp-sa-key"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"timeouts": null,
|
|
"traffic": [
|
|
{
|
|
"latest_revision": true,
|
|
"percent": 100,
|
|
"revision_name": "",
|
|
"tag": "",
|
|
"url": ""
|
|
}
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "google_compute_instance",
|
|
"name": "vector_db_vm_with_static_ip",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/google\"]",
|
|
"instances": []
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|