You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--s3-read without --s3-write fails launch: MalformedPolicyDocument (empty PutObject Resource) #669
spawn launch --s3-read BUCKET without --s3-write fails before launch:
failed to attach scoped policy: ... PutRolePolicy ... MalformedPolicyDocument: Policy statement must contain resources.
taskStagingPolicy (cmd/task.go:1121) always appends the s3:PutObject statement. On the launch path (launch_single.go:1047), outputBuckets is empty and resultsBucket is "". dedupeBuckets drops the empty string, so bucketObjectARNs returns "" and the statement ends up with "Resource":[].
Fix
Wrap the PutObject statement in if len(writeB) > 0. Add a test for read-only --s3-read. Workaround for now: also pass --s3-write (no-cost if unused, but it grants write you didn't ask for).
Activity