# unpack_archive_to_bucket Unpack archive(s) to a target location within a Google Storage bucket ## Inputs ### Required inputs
unpack_archive_to_bucket.input_archive_files
Array[File] — Default: None
List of input archive files to unpack.
unpack_archive_to_bucket.bucket_path_prefix
String? — Default: None
Path within the Google Storage bucket to unpack the archive files. If not provided, the root of the bucket will be used.
unpack_archive_to_bucket.check_terra_env.docker
String — Default: "ghcr.io/broadinstitute/viral-ngs:3.0.4-core"
???
unpack_archive_to_bucket.gcloud_access_token
String? — Default: None
Access token for the Google Cloud Storage bucket, for account authorized to write to the bucket specified by 'bucket_path_prefix'. If not provided, the gcloud auth configuration of the execution environment will be obtained via 'gcloud auth print-access-token' for the active authenticated user (on Terra, the service worker/'pet' account).
unpack_archive_to_bucket.out_dir_name
String? — Default: None
Name of the (sub-)directory to unpack the archive contents to within the bucket prefix specified. If not provided, the contents will be unpacked to the bucket prefix.
unpack_archive_to_bucket.unpack_archive_to_bucket_path.archive_wrapper_directories_to_strip
Int? — Default: None
(tar) If specified, tar extraction excludes this many top-level directories. (i.e. if all files of a tarball are containined within a top-level subdirectory, and archive_wrapper_directories_to_strip=1, the files files will be extracted without being placed into a corresponding output sub-directory. Equivalent to the parameter '--strip-components' of GNU tar.
unpack_archive_to_bucket.unpack_archive_to_bucket_path.bypass_disk_and_unpack_directly_to_bucket
Boolean — Default: false
(tar) If true, unpack the archive(s) and pipe the contents directly to the gcloud storage upload process, without writing to the disk between extraction and upload. If enabled, minimal disk space will be used beyond storage needed to localize the specified input archive(s), but the task may take significantly longer as each file is uploaded using an independent gcloud storage invocation.
unpack_archive_to_bucket.unpack_archive_to_bucket_path.clobber_existing
Boolean — Default: false
(gcloud storage cp) If true, overwrite files in the target directory of the bucket if they already exist.
unpack_archive_to_bucket.unpack_archive_to_bucket_path.disk_size
Int — Default: ceil((3.0 * size(input_archive_files[0],"GB"))) + 50
Size of the disk to allocate for the task, in GB. Note that if multiple files are provided to 'input_archive_files', and extracted data is written to the disk (bypass_disk_and_unpack_directly_to_bucket=false), the extracted data from one archive will be removed before extracting and uploading data from the next input archive.
unpack_archive_to_bucket.unpack_archive_to_bucket_path.docker
String — Default: "ghcr.io/broadinstitute/viral-ngs:3.0.4-core"
Docker image to use for the task. For this task, the image must provide GNU tar and the google-cloud-cli ('gcloud' command)
unpack_archive_to_bucket.unpack_archive_to_bucket_path.gcloud_storage_cp_opts
String — Default: ""
(gcloud storage cp) Additional options to pass to the 'gcloud storage cp' command at the time of upload.
unpack_archive_to_bucket.unpack_archive_to_bucket_path.machine_mem_gb
Int — Default: 8
Memory to allocate for the task, in GB.
unpack_archive_to_bucket.unpack_archive_to_bucket_path.tar_opts
String — Default: "-v --ignore-zeros --no-ignore-command-error"
(tar) Options to pass to GNU tar during extraction. By default includes: '-v --ignore-zeros --no-ignore-command-error'
unpack_archive_to_bucket.check_terra_env.env_info
File
???
unpack_archive_to_bucket.check_terra_env.gcloud_config_info
File
???
unpack_archive_to_bucket.check_terra_env.gcp_instance_metadata
File
???
unpack_archive_to_bucket.check_terra_env.google_project_id
String
???
unpack_archive_to_bucket.check_terra_env.input_row_id
String
???
unpack_archive_to_bucket.check_terra_env.input_table_name
String
???
unpack_archive_to_bucket.check_terra_env.is_backed_by_gcp
Boolean
???
unpack_archive_to_bucket.check_terra_env.is_running_on_terra
Boolean
???
unpack_archive_to_bucket.check_terra_env.is_running_via_gcp_batch
Boolean
???
unpack_archive_to_bucket.check_terra_env.is_running_via_gcp_papiv2
Boolean
???
unpack_archive_to_bucket.check_terra_env.max_ram_gb
Int
???
unpack_archive_to_bucket.check_terra_env.method_path
String
???
unpack_archive_to_bucket.check_terra_env.method_source
String
???
unpack_archive_to_bucket.check_terra_env.method_version
String
???
unpack_archive_to_bucket.check_terra_env.top_level_submission_id
String
???
unpack_archive_to_bucket.check_terra_env.user_email
String
???
unpack_archive_to_bucket.check_terra_env.workspace_bucket_path
String
???
unpack_archive_to_bucket.check_terra_env.workspace_name
String
???
unpack_archive_to_bucket.check_terra_env.workspace_namespace
String
???
unpack_archive_to_bucket.check_terra_env.workspace_uuid
String
???