Skip to content

AWS Health Omics workflow cannot access VCF files in S3 private bucket

0

My AWS health omics private nextflow workflow is working fine for VCF files in public s3 bucket, but it is not working for VCF files in private s3 bucket. I have created a role following this tutorial https://docs.aws.amazon.com/omics/latest/dev/workflow-resource-policy.html to run the workflow and listed all my public and private bucket in resource parameter. The workflow is running fine for public bucket files, but it is giving permission error for the private bucket files. For my private bucket it is showing the following error: [E::hts_open_format] Failed to open file "s3://create-data-for-cocorv/chr2.CReATe_ALS_gatk4.1.8.0.GATK.vcf.gz" : Permission denied

1 Answer
0

The error [E::hts_open_format] Failed to open file "s3://create-data-for-cocorv/chr2.CReATe_ALS_gatk4.1.8.0.GATK.vcf.gz" : Permission denied looks suspicious. It suggests that the tool used in the workflow task is trying to access an S3 object directly but typically these types of inputs should be localized to the filesystem of the run. If the workflow language is WDL then you would use the File type, rather than the String type. For Nextflow you would use the Path type.

The error format looks like it is originating from a tool that is built from htslib, that library can also give you permission denied errors if the accompanying VCF index file is not being found even though the VCF itself does exist.

Can you say more about the tool you are using or share some details about the workflow task that is getting this error?

AWS
EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.