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

<pre lang="bash">
aws lightsail create-instance-snapshot \
--instance-snapshot-name test-snapshot \
--instance-name your-server

Here’s how to delete a snapshot.

<pre lang="bash">
aws lightsail delete-instance-snapshot \
--instance-snapshot-name test-snapshot