Skip to content

snapshot create: a spawn launch instance (spored-instance-role) can't build a snapshot — lacks source-bucket S3 read and ebs:StartSnapshot #579

Closed

Description

@scttfrdmn

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.

Repro

spawn launch <name> --command "<install spawn; aws s3 cp s3://<your-bucket>/… idx/ --recursive; spawn snapshot create --from ./idx/ …>" (spawn 0.104.0, us-east-1).

Two AccessDenied, both on spored-instance-role

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)

  1. 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.
  2. 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.
  3. 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.

Activity

  1. scttfrdmn commented on Sep 10, 2026

    @scttfrdmn
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions