### Apply Example Module Configuration Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Apply the configuration for a specific example module using Kitchen. This command provisions the resources defined in the module. ```bash kitchen_do converge ``` -------------------------------- ### Verify Example Module Functionality Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Test the applied example module configuration using Kitchen. This command verifies that the module behaves as expected. ```bash kitchen_do verify ``` -------------------------------- ### Initialize Example Module Working Directory Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Initialize the working directory for a specific example module within the interactive Docker container. Replace with the actual module name. ```bash kitchen_do create ``` -------------------------------- ### Destroy Example Module Resources Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Clean up resources created for a specific example module using Kitchen. This command deprovisions the module's state. ```bash kitchen_do destroy ``` -------------------------------- ### Start Interactive Testing Docker Container Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Run this command to start the testing Docker container in interactive mode. This allows for manual control over the testing process. ```bash make docker_run ``` -------------------------------- ### Run Noninteractive Integration Tests Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Execute all example modules noninteractively using the prepared test project. This command verifies the functionality of the modules. ```bash make docker_test_integration ``` -------------------------------- ### Agent Gateway Protocols Configuration Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/README.md This example shows how to configure the list of protocols for the Agent Gateway. The default protocol is 'MCP'. ```terraform protocols = ['MCP'] ``` -------------------------------- ### Agent Gateway Registries Configuration Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/README.md This example demonstrates how to specify a list of Agent registries for the Agent Gateway. The format for each registry should follow the provided pattern. ```terraform registries = [] ``` -------------------------------- ### Prepare Test Project with Docker Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Use this command to prepare a test project within a Docker container. This command sets up the necessary environment for integration testing. ```bash make docker_test_prepare ``` -------------------------------- ### Generate Module Documentation Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Run this command to refresh the Inputs and Outputs tables in README files. Ensure module interfaces are up-to-date. ```bash make generate_docs ``` -------------------------------- ### Set Test Environment Variables Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Set these environment variables for the test project configuration. Replace placeholders with your actual organization, folder, and billing account IDs. ```bash export TF_VAR_org_id="your_org_id" export TF_VAR_folder_id="your_folder_id" export TF_VAR_billing_account="your_billing_account_id" ``` -------------------------------- ### Run Linting and Formatting Checks Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Execute linting and formatting checks across the repository files. This command ensures code quality and consistency. ```bash make docker_test_lint ``` -------------------------------- ### Deploy Agent Gateway with Terraform Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/README.md Use this snippet to deploy a basic Agent Gateway. Ensure you replace placeholder values with your specific project details. Optional parameters for authz policies and extensions can be uncommented and configured as needed. ```terraform module "my_agent_gateway" { source = "./modules/agent_gateway" # Or use a Git/GCS source project_id = "your-gcp-project-id" gateway_name = "my-secure-agent-gateway" display_name = "My Company Agent Gateway" # location = "global" # Defaults to "global" # Optional: Associate with pre-existing Authz Policy and Extension # authz_policy_id = "my-authz-policy-id" # authz_extension_id = "my-authz-extension-id" labels = { environment = "dev" managed-by = "terraform" } } # Example of referencing outputs output "gateway_id" { value = module.my_agent_gateway.agent_gateway_id } ``` -------------------------------- ### Export Service Account Credentials Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/CONTRIBUTING.md Export your service account JSON key to the SERVICE_ACCOUNT_JSON environment variable. This is required for setting up the test environment. ```bash export SERVICE_ACCOUNT_JSON=$(< credentials.json) ``` -------------------------------- ### Agent Gateway Google Managed Deployment Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/README.md Configure the operating mode for Google Managed deployments. Possible values are 'AGENT_TO_ANYWHERE' or 'CLIENT_TO_AGENT'. This conflicts with `self_managed_resource_uri`. ```terraform google_managed_governed_access_path = "null" ``` -------------------------------- ### Agent Gateway Egress Network Attachment Configuration Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/README.md Configure the egress network attachment for the Agent Gateway. The URI must be in the format: projects/{project}/regions/{region}/networkAttachments/{name}. ```terraform network_config_egress_network_attachment = "projects/{project}/regions/{region}/networkAttachments/{name}" ``` -------------------------------- ### Agent Gateway Self-Managed Deployment Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/README.md Use this configuration for self-managed deployments. It requires a supported Google Cloud networking proxy URI and conflicts with `google_managed_governed_access_path`. ```terraform self_managed_resource_uri = "null" ``` -------------------------------- ### Agent Gateway Timeout Settings Source: https://github.com/googlecloudplatform/terraform-google-agent-gateway/blob/main/README.md Set custom timeouts for creation, deletion, and update operations. The default timeout for each is '30m'. ```terraform timeout_create = "30m" ``` ```terraform timeout_delete = "30m" ``` ```terraform timeout_update = "30m" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.