|
|
|
|
@@ -25,6 +25,7 @@ The module creates Agent Engine and related dependencies.
|
|
|
|
|
- [Container-based deployment](#container-based-deployment)
|
|
|
|
|
- [Memory Bank](#memory-bank)
|
|
|
|
|
- [Getting values from context](#getting-values-from-context)
|
|
|
|
|
- [Disable deletion protection](#disable-deletion-protection)
|
|
|
|
|
- [Variables](#variables)
|
|
|
|
|
- [Outputs](#outputs)
|
|
|
|
|
<!-- END TOC -->
|
|
|
|
|
@@ -412,23 +413,51 @@ module "agent_engine" {
|
|
|
|
|
}
|
|
|
|
|
# tftest inventory=context.yaml
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Disable deletion protection
|
|
|
|
|
|
|
|
|
|
By default you can't neither delete your agent if it has session or your GCS bucket if it has files inside. For testing, you can anyway force the deletion of these resources:
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
module "agent_engine" {
|
|
|
|
|
source = "./fabric/modules/agent-engine"
|
|
|
|
|
name = "my-agent"
|
|
|
|
|
project_id = var.project_id
|
|
|
|
|
region = var.region
|
|
|
|
|
enable_deletion_protection = false
|
|
|
|
|
|
|
|
|
|
agent_engine_config = {
|
|
|
|
|
agent_framework = "google-adk"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deployment_config = {
|
|
|
|
|
package_config = {
|
|
|
|
|
pickle_path = "assets/src/pickle.pkl"
|
|
|
|
|
dependencies_path = "assets/src/dependencies.tar.gz"
|
|
|
|
|
requirements_path = "assets/src/requirements.txt"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
# tftest inventory=deletion-protection.yaml
|
|
|
|
|
```
|
|
|
|
|
<!-- BEGIN TFDOC -->
|
|
|
|
|
## Variables
|
|
|
|
|
|
|
|
|
|
| name | description | type | required | default |
|
|
|
|
|
|---|---|:---:|:---:|:---:|
|
|
|
|
|
| [name](variables.tf#L172) | The name of the agent. | <code>string</code> | ✓ | |
|
|
|
|
|
| [project_id](variables.tf#L191) | The id of the project where to deploy the agent. | <code>string</code> | ✓ | |
|
|
|
|
|
| [region](variables.tf#L197) | The region where to deploy the agent. | <code>string</code> | ✓ | |
|
|
|
|
|
| [name](variables.tf#L178) | The name of the agent. | <code>string</code> | ✓ | |
|
|
|
|
|
| [project_id](variables.tf#L197) | The id of the project where to deploy the agent. | <code>string</code> | ✓ | |
|
|
|
|
|
| [region](variables.tf#L203) | The region where to deploy the agent. | <code>string</code> | ✓ | |
|
|
|
|
|
| [agent_engine_config](variables.tf#L17) | The agent configuration. Supported values for agent_framework: 'google-adk', 'langchain', 'langgraph', 'ag2', 'llama-index', 'custom'. | <code>object({…})</code> | | <code>{}</code> |
|
|
|
|
|
| [bucket_config](variables.tf#L41) | The GCS bucket configuration. | <code>object({…})</code> | | <code>{}</code> |
|
|
|
|
|
| [context](variables.tf#L53) | Context-specific interpolations. | <code>object({…})</code> | | <code>{}</code> |
|
|
|
|
|
| [deployment_config](variables.tf#L69) | The deployment configuration. | <code>object({…})</code> | | <code>{}</code> |
|
|
|
|
|
| [description](variables.tf#L129) | The Agent Engine description. | <code>string</code> | | <code>"Terraform managed."</code> |
|
|
|
|
|
| [encryption_key](variables.tf#L136) | The full resource name of the Cloud KMS CryptoKey. | <code>string</code> | | <code>null</code> |
|
|
|
|
|
| [managed](variables.tf#L142) | Whether the Terraform module should control the code updates. | <code>bool</code> | | <code>true</code> |
|
|
|
|
|
| [memory_bank_config](variables.tf#L149) | Configuration for the memory bank. | <code>object({…})</code> | | <code>null</code> |
|
|
|
|
|
| [networking_config](variables.tf#L178) | Networking configuration. | <code>object({…})</code> | | <code>null</code> |
|
|
|
|
|
| [context](variables.tf#L52) | Context-specific interpolations. | <code>object({…})</code> | | <code>{}</code> |
|
|
|
|
|
| [deployment_config](variables.tf#L68) | The deployment configuration. | <code>object({…})</code> | | <code>{}</code> |
|
|
|
|
|
| [description](variables.tf#L128) | The Agent Engine description. | <code>string</code> | | <code>"Terraform managed."</code> |
|
|
|
|
|
| [enable_deletion_protection](variables.tf#L135) | Whether deletion protection should be enabled. | <code>bool</code> | | <code>true</code> |
|
|
|
|
|
| [encryption_key](variables.tf#L142) | The full resource name of the Cloud KMS CryptoKey. | <code>string</code> | | <code>null</code> |
|
|
|
|
|
| [managed](variables.tf#L148) | Whether the Terraform module should control the code updates. | <code>bool</code> | | <code>true</code> |
|
|
|
|
|
| [memory_bank_config](variables.tf#L155) | Configuration for the memory bank. | <code>object({…})</code> | | <code>null</code> |
|
|
|
|
|
| [networking_config](variables.tf#L184) | Networking configuration. | <code>object({…})</code> | | <code>null</code> |
|
|
|
|
|
| [service_account_config](variables-serviceaccount.tf#L18) | Service account configurations. | <code>object({…})</code> | | <code>{}</code> |
|
|
|
|
|
|
|
|
|
|
## Outputs
|
|
|
|
|
|