Add folder path to EFS targer
Bonderec opened this issue · 0 comments
Hello,
I need to make backup of folders inside EFS because EFS size is too big and takes a lot of time to make full backup. So it would be great to have option to specify targed folder in EFS. Is it possible to add path inside EFS to backup from?
I tried to add:
- in efs.tf
data "aws_efs_mount_target_folder" "default" {
mount_target_folder = "${var.efs_mount_target_folder}"
} - in variables.tf
variable "efs_mount_target_folder" {
type = "string"
default = "<target_folder>" - in cloudformation.tf
myEFSHostFolder = "${var.efs_mount_target_folder}"
-in templates/datapipeline.yaml
add variable "$4" for target folder, place it after "$source":/, and add 4th scriptArgument with value "#{myEFSHostFolder}"
But got errors after "terraform plan or init" - Error: resource 'data.aws_efs_mount_target_folder.default' config: unknown variable referenced: 'efs_mount_target_folder'; define it with a 'variable' block
and
Error: resource 'aws_cloudformation_stack.datapipeline' config: unknown variable referenced: 'efs_mount_target_folder'; define it with a 'variable' block
What did I miss?
Or add please opportunity to specify folders for backup inside the EFS.
Best Regards.