google_storage_transfer_agent_pool

Represents an On-Premises Agent pool.

To get more information about AgentPool, see:

Example Usage - Agent Pool Basic

data "google_storage_transfer_project_service_account" "default" {
  project = "my-project-name"
}

resource "google_project_iam_member" "pubsub_editor_role" {
  project = "my-project-name"
  role    = "roles/pubsub.editor"
  member  = "serviceAccount:${data.google_storage_transfer_project_service_account.default.email}"
}

resource "google_storage_transfer_agent_pool" "example" {
  name         = "agent-pool-example"
  display_name = "Source A to destination Z"
  bandwidth_limit {
    limit_mbps = "120"
  }

  depends_on = [google_project_iam_member.pubsub_editor_role]
}

Argument Reference

The following arguments are supported:


The bandwidth_limit block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

AgentPool can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import AgentPool using one of the formats above. For example:

import {
  id = "projects/{{project}}/agentPools/{{name}}"
  to = google_storage_transfer_agent_pool.default
}

When using the terraform import command, AgentPool can be imported using one of the formats above. For example:

$ terraform import google_storage_transfer_agent_pool.default projects/{{project}}/agentPools/{{name}}
$ terraform import google_storage_transfer_agent_pool.default {{project}}/{{name}}
$ terraform import google_storage_transfer_agent_pool.default {{name}}

User Project Overrides

This resource supports User Project Overrides.