- Newest
- Most votes
- Most comments
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:
- Check your IAM service role permissions:
- Ensure the role you're using with the
start-runcommand has sufficient S3 permissions - The role needs at minimum
s3:GetBucketLocationands3:GetObjectpermissions for the bucket containing your sequence data
- 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)
- 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
- 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
Relevant content
asked 3 years ago
