From fa0b17d674fcd331327ceb4bd4be7eb740c59a68 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Wed, 13 Nov 2024 18:14:31 +0000 Subject: [PATCH] Add task Signed-off-by: Jacob Woffenden --- .../datasync-tasks.tf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 terraform/environments/analytical-platform-ingestion/datasync-tasks.tf diff --git a/terraform/environments/analytical-platform-ingestion/datasync-tasks.tf b/terraform/environments/analytical-platform-ingestion/datasync-tasks.tf new file mode 100644 index 00000000000..e87e5f6e6be --- /dev/null +++ b/terraform/environments/analytical-platform-ingestion/datasync-tasks.tf @@ -0,0 +1,19 @@ +resource "aws_datasync_task" "dom1_hq_pgo_shared_group_sis_case_management_investigations" { + name = "dom1-hq-pgo-shared-group-sis-case-management-investigations" + source_location_arn = aws_datasync_location_smb.dom1_hq_pgo_shared_group_sis_case_management_investigations.arn + destination_location_arn = aws_datasync_location_s3.dom1_hq_pgo_shared_group_sis_case_management_investigations.arn + + task_report_config { + report_level = "SUCCESSES_AND_ERRORS" + output_type = "STANDARD" + s3_object_versioning = "INCLUDE" + + s3_destination { + bucket_access_role_arn = module.datasync_iam_role.iam_role_arn + s3_bucket_arn = module.datasync_bucket.s3_bucket_arn + subdirectory = "reports/dom1/hq/pgo/shared/group/sis-case-management/investigations/" + } + } + + tags = local.tags +}