Terraform-provider-google: Support for gcp bucket transfers

Created on 3 Apr 2018  ยท  12Comments  ยท  Source: hashicorp/terraform-provider-google

Hi,

Currently it's not possible to create a bucket-transfer in combination terraform.
We would like to use transfers for various reasons, but mainly for automated backups.

Terraform Version

0.11.1

Affected Resource(s)

Please list the resources as a list, for example:

  • resource_storage_bucket_transfer

Expected Behavior

We would like to define transfers as a resource, for example:

resource "google_storage_bucket_transfer" "transfer" {
  bucket = "your-bucket-name"
  jobspec = { spec }
}

Actual Behavior

enhancement

Most helpful comment

Yes please! We'd like to use this too, if possible!

All 12 comments

Hi @markfra,

Can you add a bit more details about your use case please? Which feature are you referring too? The resource you are listing above does not exist but you are talking about supporting import for it...

Thank you

Sorry for the confusion, i have updated the expected behaviour.

As of the use-case: within buckets we want to define transfer jobs (https://cloud.google.com/storage/transfer/reference/rest/) which is handled by the storage-transfer-api.

+1 for this feature. No so sure about the resource example in the OP, since a transfer consists of just one transfer job, not a list. But yes would love to be able to configure this via terraform.

@lloydcotten you are correct. Within GCP its 1 spec per job. so it should not be a list (updated the example).

https://github.com/ReneKroon/terraform-provider-google/commit/e5bdd1a21b1112e85c09ea6723383018697ec7e5

i started the schema definition here. I would appreciate some feedback on the structure.

General structure looks good to me. Only a few comments about naming and marking field as required vs optional. Thank you

Yes please! We'd like to use this too, if possible!

Any news if this will be implemented? :)

Same here, would be awesome to get this in so we can create scheduled transfers as we create new buckets ๐Ÿ‘

I've created a PR #2181 that builds upon @ReneKroon's work with the amendments suggested by @rosbo.

*Updated

Support has been added by @akramhussein in https://github.com/GoogleCloudPlatform/magic-modules/pull/1069 and this feature will be released in 2.0.0 ๐ŸŽ‰

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error ๐Ÿค– ๐Ÿ™‰ , please reach out to my human friends ๐Ÿ‘‰ [email protected]. Thanks!

Was this page helpful?
0 / 5 - 0 ratings