Add Nextflow head job IAM role to manual AWS Batch setup docs#1219
Open
Add Nextflow head job IAM role to manual AWS Batch setup docs#1219
Conversation
EC2-based manual compute environments require a dedicated head job role with explicit CloudWatch Logs permissions, including logs:GetLogEvents. Without this permission, Nextflow cannot retrieve task stderr from CloudWatch when tasks fail, producing an AccessDeniedException instead of the actual error. Batch Forge auto-creates this role for Fargate head jobs, but customers using EC2 head jobs must create it manually. The docs previously had no guidance on this role. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Rob Syme <rob.syme@gmail.com>
✅ Deploy Preview for seqera-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
@robsyme do we want to include S3 category permissions in the docs too? I ask because I've seen a ticket or two recently where users want to supply their own custom head job role in Platform and have that head job role interact with a specific S3 bucket (for scratch etc) |
justinegeffen
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
logs:GetLogEventspermission, which Nextflow requires to retrieve task stderr from CloudWatch when tasks failBackground
When Batch Forge creates a Fargate head job, the platform automatically attaches the correct IAM policy including
logs:GetLogEvents. For EC2-based manual compute environments, customers must create this role themselves — but the docs previously provided no guidance on what permissions it needs. Customers who created a least-privilege role without referencinglogs:Get*wildcards would hit anAccessDeniedExceptionwhen Nextflow tried to fetch task logs on failure, with a misleading HTTP 400 error.Test plan
manual-aws-batch-setup.mdxrender correctlyseqera-headjob-role🤖 Generated with Claude Code