Represents an On-Premises Agent pool.
To get more information about AgentPool, see:
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]
}
The following arguments are supported:
name
-
(Required)
The ID of the agent pool to create.
The agentPoolId must meet the following requirements:
display_name
-
(Optional)
Specifies the client-specified AgentPool description.
bandwidth_limit
-
(Optional)
Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'.
Structure is documented below.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
The bandwidth_limit
block supports:
limit_mbps
-
(Required)
Bandwidth rate in megabytes per second, distributed across all the agents in the pool.In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/agentPools/{{name}}
state
-
Specifies the state of the AgentPool.
This resource provides the following Timeouts configuration options:
create
- Default is 30 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.AgentPool can be imported using any of these accepted formats:
projects/{{project}}/agentPools/{{name}}
{{project}}/{{name}}
{{name}}
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}}
This resource supports User Project Overrides.