Skip to content

AWS HealthOmics - Ready2Run workflow issue - S3 denied access CRAM

0

Hello community,

I just started using AWS and I am trying to run a Ready2Run workflow. I have uploaded the CRAM files to a sequence store I created using this guide: https://docs.aws.amazon.com/omics/latest/dev/synchronous-uploads.html

However, I am struggling with the permissions for the Service role and I can't start my run. I get:

Failed to create the runs. S3 access denied: s3://<ACCOUNTID>-7454380-uf3t9wegow1p4chsj4x63558xa8haeuc1b-s3alias/<ACCOUNTID>/sequenceStore/7454380862/readSet/1343292372/Sample_1.cram.crai

So the CRAM file and its index (autocreated by AWS) cannot be accessed and thus the workflow won't start. How can I resolve this? I tried creating my own service role from before and autocreating a new service role from the wizard, but I can't get through.

Any pointers would be appreciated.

Thanks in advance,

Panos

1 Answer
0

To resolve the S3 access denied error when running AWS HealthOmics Ready2Run workflows, you need to ensure your service role has the proper permissions to access the CRAM files in your sequence store.

Here are the steps to fix this issue:

  1. Check your IAM service role permissions:
  • Ensure the role you're using with the start-run command has sufficient S3 permissions
  • The role needs at minimum s3:GetBucketLocation and s3:GetObject permissions for the bucket containing your sequence data
  1. Verify there are no explicit deny statements in:
  • The IAM role policy
  • Bucket policies on the S3 bucket
  • Service Control Policies (if your account is part of AWS Organizations)
  1. When starting your Ready2Run workflow, make sure you're using the correct parameters:
aws omics start-run \
--workflow-type READY2RUN \
--workflow-id <workflow-id> \
--role-arn <your-service-role-arn> \
--output-uri <s3-output-location> \
--parameters file://workflow-inputs.json
  1. In your parameters file, ensure you're correctly referencing the S3 paths to your CRAM files and other inputs.

If you're still experiencing issues, check if there are any IP restrictions on your IAM role that might be causing the access denied error. In some cases, you may need to modify policies to include the aws:ViaAWSService condition to allow AWS services to make API calls on your behalf.
Sources
Starting HealthOmics Ready2Run workflows using the API - AWS HealthOmics
HealthOmics examples using AWS CLI - AWS SDK Code Examples
KBHS-00719: Error 'AccessDenied' | AWS re:Post
Resolve access denied errors in S3 for IP-restricted IAM roles | AWS re:Post
Authorization on S3 assignment | AWS re:Post

answered a year ago

AWS
EXPERT

reviewed 6 months 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.