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
ec2: EC2Snapshot.VolumeSize is a constant, no CreateSnapshot exists, and a named snapshot is never checked #689
Blocks the sixth refusal deliberately dropped from #671: Ebs.VolumeSize smaller than the snapshot's.
Three coupled gaps:
EC2Snapshot.VolumeSize is the literal 8 at its single producer, createImage (emulator/ec2_plugin.go:3225) — so a size-vs-snapshot comparison would test a constant rather than a value the caller controls.
No CreateSnapshot operation exists, so a caller cannot produce a snapshot of any other size.
A block device mapping naming Ebs.SnapshotId is never checked for existence, so a launch from snap-000000000000deadb succeeds. Real EC2 answers InvalidSnapshot.NotFound.
(3) is worth doing on its own and is the smallest of the three; (1) and (2) are what make the #671 refusal meaningful.
Acceptance criteria
CreateSnapshot records the source volume's actual size, and createImage's snapshot does too.
Activity
feat(ec2): a snapshot has a real size, and a nonexistent one is refus…
feat(ec2): CreateTags reaches every taggable resource type (#708) (#721)