Terraform-provider-aws: AWS DataSync Scheduling

Created on 23 Nov 2019  路  8Comments  路  Source: hashicorp/terraform-provider-aws

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

AWS have announced support for scheduled tasks for AWS Datasync: https://aws.amazon.com/about-aws/whats-new/2019/11/aws-datasync-adds-the-ability-to-schedule-data-transfers/

You can now schedule AWS DataSync transfers between NFS servers, SMB servers, Amazon S3, and Amazon Elastic File System (Amazon EFS). DataSync task scheduling enables you to periodically execute a transfer task to detect and copy changes from your source storage system to the destination.

New or Affected Resource(s)

Potential Terraform Configuration

resource "aws_datasync_task" "example" {
  destination_location_arn = "${aws_datasync_location_s3.destination.arn}"
  name                     = "example"
  source_location_arn      = "${aws_datasync_location_nfs.source.arn}"

  schedule {
    schedule_expression = "<cron expression>"
  }
}

References

  • https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html

  • https://docs.aws.amazon.com/datasync/latest/userguide/API_UpdateTask.html
  • https://docs.aws.amazon.com/datasync/latest/userguide/API_TaskSchedule.html
  • enhancement servicdatasync

    Most helpful comment

    We need this part of the terraform resource to schedule our datasync task.

    All 8 comments

    We need this part of the terraform resource to schedule our datasync task.

    Voted. Could you add filtering feature to the request? Thanks

    This is absolutely important to automate the data sync task,
    + 1

    shocked to find out that I cannot schedule/kick off the task with terraform, after spending hours setting up all the groundwork for EFS replication using terraform.
    the ability to schedule task runs is absolutely needed.

    Ill take a crack at it.

    @DrFaust92 Go for it - I don't have any plans to work on this right now 馃憤

    DataSync scheduling is a must have! The current Terraform datasync task does not support scheduling, does not support specify log level... Unbelievable!

    Was this page helpful?
    0 / 5 - 0 ratings