mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
EC2 now serves CreateSnapshot, DeleteSnapshot and CopySnapshot for EBS volumes. CreateSnapshot takes the volume's size and encryption, is owned by the caller and accepts snapshot tags from TagSpecification. DeleteSnapshot removes the snapshot and its tags, and refuses with InvalidSnapshot.InUse while a registered AMI uses it. CopySnapshot copies from SourceRegion into the request's Region as a new snapshot, encrypted when the source is, when Encrypted=true or when the destination's encryption by default says so, without the source's tags. All three honor DryRun, keeping the error the real call would give. An unsigned, unversioned CopySnapshot now routes to EC2, since Floci's ElastiCache does not serve it. RegisterImage builds its snapshot records through the same helper. Closes #7943