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
snapshot create: a spawn launch instance (spored-instance-role) can't build a snapshot — lacks source-bucket S3 read and ebs:StartSnapshot #579
snapshot create: a spawn launch instance can't build a snapshot — lacks both source-bucket S3 read and ebs:StartSnapshot
spawn snapshot create --help recommends, for large data over a slow uplink, running it "from AWS CloudShell or a small in-region EC2 instance so the upload is AWS-internal." The natural way to get a small in-region instance is spawn launch. But a spawn-launched instance (running as spored-instance-role) cannot run snapshot create — it's denied at both steps.
1. Can't read the source from a user bucket (so there's nothing to snapshot):
An error occurred (AccessDenied) when calling the ListObjectsV2 operation:
User: arn:aws:sts::<acct>:assumed-role/spored-instance-role/i-… is not authorized to
perform: s3:ListBucket on resource: "arn:aws:s3:::<bucket>" because no identity-based
policy allows the s3:ListBucket action
(Same for s3:PutObject when staging results.) The task path grants manifest-scoped bucket perms from a spec's inputs/outputs; spawn launch --command grants no user-bucket access.
2. ebs:StartSnapshot denied — isolated with a 1 MB local dummy dir (no S3 at all), so this is purely the EBS-direct permission:
StartSnapshot: operation error EBS: StartSnapshot, https response error StatusCode: 403,
AccessDeniedException: User: arn:aws:sts::<acct>:assumed-role/spored-instance-role/i-… is
not authorized to perform: ebs:StartSnapshot on resource: arn:aws:ec2:us-east-1::snapshot/null
because no identity-based policy allows the ebs:StartSnapshot action
Impact
The documented "run it from an in-region EC2 instance" path cannot be satisfied by a spawn launch instance. You must supply your own instance with your IAM-user creds (or an instance profile carrying ebs:StartSnapshot/PutSnapshotBlock/CompleteSnapshot + read on the source bucket). That prerequisite isn't stated anywhere, and the most obvious in-region instance source (spawn launch) doesn't meet it.
Suggestions (any one resolves it)
Document the perms a snapshot-build instance needs (the three ebs: direct actions + read on the source bucket), and note spawn launch instances don't have them.
A spawn launch flag (e.g. --for-snapshot-build) that attaches a scoped EBS-direct policy (+ optional source-bucket grant), so a spawn-launched instance can build snapshots.
Clarify in snapshot create --help that it runs with your credentials, not on a spawn-managed instance.
Environment
spawn 0.104.0 · spored-instance-role · us-east-1 · both errors reproduced on fresh spawn launch instances.
Reproduced on a fresh spawn launch instance (spawn 0.104.0, us-east-1), the same path as the original report: a spawn-launched helper running as spored-instance-role still gets both 403s when building a snapshot of an index in an S3 bucket.
1. Reading the source bucket — s3:ListBucket denied:
An error occurred (AccessDenied) when calling the ListObjectsV2 operation:
User: arn:aws:sts::<acct>:assumed-role/spored-instance-role/i-... is not authorized to
perform: s3:ListBucket on resource: "arn:aws:s3:::<bucket>" because no identity-based
policy allows the s3:ListBucket action
2. EBS-direct — ebs:StartSnapshot denied (isolated with a local dummy dir, so this is purely the EBS-direct permission, no S3 involved):
StartSnapshot: operation error EBS: StartSnapshot, https response error StatusCode: 403,
AccessDeniedException: User: arn:aws:sts::<acct>:assumed-role/spored-instance-role/i-... is
not authorized to perform: ebs:StartSnapshot on resource: arn:aws:ec2:us-east-1::snapshot/null
because no identity-based policy allows the ebs:StartSnapshot action
Both are identical to the original failure. spored-instance-role has neither user-bucket S3 read nor the EBS-direct actions (ebs:StartSnapshot / PutSnapshotBlock / CompleteSnapshot), so spawn snapshot create still cannot run on a spawn launch instance — which remains the natural way to get the in-region instance the snapshot create docs call for.
Repro: spawn launch <name> --command "<install spawn; aws s3 cp s3://<bucket>/… idx/ --recursive; spawn snapshot create --from ./idx/ …>", and separately spawn snapshot create --from ./<local-dummy-dir>/ to isolate the EBS-direct 403 from the S3 one.
Activity
docs(snapshot): state EBS-direct perms needed to build snapshots + do…
scttfrdmn commentedon Sep 10, 2026
Reproduced on a fresh
spawn launchinstance (spawn 0.104.0, us-east-1), the same path as the original report: a spawn-launched helper running asspored-instance-rolestill gets both 403s when building a snapshot of an index in an S3 bucket.1. Reading the source bucket —
s3:ListBucketdenied:2. EBS-direct —
ebs:StartSnapshotdenied (isolated with a local dummy dir, so this is purely the EBS-direct permission, no S3 involved):Both are identical to the original failure.
spored-instance-rolehas neither user-bucket S3 read nor the EBS-direct actions (ebs:StartSnapshot/PutSnapshotBlock/CompleteSnapshot), sospawn snapshot createstill cannot run on aspawn launchinstance — which remains the natural way to get the in-region instance thesnapshot createdocs call for.Repro:
spawn launch <name> --command "<install spawn; aws s3 cp s3://<bucket>/… idx/ --recursive; spawn snapshot create --from ./idx/ …>", and separatelyspawn snapshot create --from ./<local-dummy-dir>/to isolate the EBS-direct 403 from the S3 one.