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.
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>"
}
}
https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html
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!
Most helpful comment
We need this part of the terraform resource to schedule our datasync task.