AWS CLI Create LightSail Snapshot

Here’s the AWS CLI for creating a LightSail snapshot.

aws lightsail create-instance-snapshot \
--instance-snapshot-name test-snapshot \
--instance-name your-server

Here’s how to delete a snapshot.

aws lightsail delete-instance-snapshot \
--instance-snapshot-name test-snapshot