Google Storage Transfer Service Storage Transfer Job

This page shows how to write Terraform for Storage Transfer Service Storage Transfer Job and write them securely.

google_storage_transfer_job (Terraform)

The Storage Transfer Job in Storage Transfer Service can be configured in Terraform with the resource name google_storage_transfer_job. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "google_storage_transfer_job" "this" {
  description = var.description
  project     = var.project
  status      = var.status

  dynamic "schedule" {

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

When the Transfer Job was created.

When the Transfer Job was deleted.

Unique description to identify the Transfer Job.

When the Transfer Job was last modified.

  • name optional computed - string

The name of the Transfer Job.

The project in which the resource belongs. If it is not provided, the provider project is used.

Status of the job. Default: ENABLED. NOTE: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from ENABLED to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation.

  • schedule list block
    • schedule_end_date list block
      • day required - number

      Day of month. Must be from 1 to 31 and valid for the year and month.

      Month of year. Must be from 1 to 12.

      Year of date. Must be from 1 to 9999.

    • schedule_start_date list block
      • day required - number

      Day of month. Must be from 1 to 31 and valid for the year and month.

      Month of year. Must be from 1 to 12.

      Year of date. Must be from 1 to 9999.

    • start_time_of_day list block

      Hours of day in 24 hour format. Should be from 0 to 23.

      Minutes of hour of day. Must be from 0 to 59.

      Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

      Seconds of minutes of the time. Must normally be from 0 to 59.

  • transfer_spec list block

Explanation in Terraform Registry

Creates a new Transfer Job in Google Cloud Storage Transfer. To get more information about Google Cloud Storage Transfer, see:

Frequently asked questions

What is Google Storage Transfer Service Storage Transfer Job?

Google Storage Transfer Service Storage Transfer Job is a resource for Storage Transfer Service of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Storage Transfer Service Storage Transfer Job?

For Terraform, the niveklabs/google source code example is useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.