Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rss3-network/terraform-gcp-openagent
Terraform module to deploy OpenAgent on Google Cloud to leverage Vertex AI.
https://github.com/rss3-network/terraform-gcp-openagent
Last synced: about 1 month ago
JSON representation
Terraform module to deploy OpenAgent on Google Cloud to leverage Vertex AI.
- Host: GitHub
- URL: https://github.com/rss3-network/terraform-gcp-openagent
- Owner: RSS3-Network
- Created: 2024-07-15T08:49:11.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T11:24:18.000Z (5 months ago)
- Last Synced: 2024-08-06T13:19:09.566Z (5 months ago)
- Language: HCL
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform OpenAgent GCP Module
This module helps you deploy OpenAgent on Google Cloud Platform to leverage Vertex AI.
The resources/services/activations/deletions that this module will create/trigger are:
- Create Cloud SQL PostgreSQL database
- Create pgvector extension
- Create Cloud Run service## Usage
```terraform
module "openagent" {
source = "RSS3-Network/openagent/gcp"project = ""
oauth = {
OAUTH_GOOGLE_CLIENT_ID = ""
OAUTH_GOOGLE_CLIENT_SECRET = ""
}
}
```Then perform the following steps:
1. Run `terraform init` to get the necessary providers.
2. Run `terraform plan` to create the execution plan.
3. Run `terraform apply` to apply the execution plan.
4. Run `terraform destroy` to destroy the resources created by the execution plan.More examples can be found in the [examples](./examples) directory.
By default, OpenAgent uses Gemini 1.5 Pro provided by the Vertex AI within the same Google Cloud project, it does not require additional API Keys. You can change the LLM provider by modifying `gemini_api_key`, and `openai_api_key`.
## Inputs
| Name | Description | Type | Default | Required |
|-------------------|--------------------------------------------------------------------------------------|---------------|--------------------|:--------:|
| project | GCP project ID | `string` | n/a | yes |
| region | value of the region | `string` | `"us-central1"` | no |
| gemini_api_key | API key for Gemini | `string` | "" | no |
| openai_api_key | API key for OpenAI | `string` | "" | no |
| nftscan_api_key | API key for NFTScan | `string` | "" | no |
| tavily_api_key | API key for Tavily | `string` | "" | no |
| covalent_api_key | API key for Covalent | `string` | "" | no |
| rootdata_api_key | API key for RootData | `string` | "" | no |
| coingecko_api_key | API key for CoinGecko | `string` | "" | no |
| sql_tier | CloudSQL Postgres tier | `string` | `"db-f1-micro"` | no |
| sql_version | CloudSQL Postgres version | `string` | `"POSTGRES_15"` | no |
| image_repo | The image repository | `string` | `"rss3/openagent"` | no |
| image_tag | The image tag | `string` | `"v20240715.1"` | no |
| oauth | The oauth env for chainlit, refer to | `map(string)` | n/a | yes |