Skip to content

Overview

Snapshot

A Snapshot is a CloudFront Distribution configuration. By saving a complex CloudFront Distribution configuration to a Snapshot, the configuration (snapshot) can be reused to current or other CloudFront Distributions in your AWS account.

Why need to save Snapshot

Configuring CloudFront is a complex, time-consuming task. Many misconfiguration or accidentally updated to an incorrect configuration can damage your business. Therefore, the Snapshot feature is provided to allow our client to save a reusable and comparable configuration as a Snapshot. Eventually, our client will benefit from the Snapshot feature to more effectively and efficiently manage the CloudFront.

How does it work?

Creating a Snapshot will export the current CloudFront Distribution configuration to a S3 bucket. The solution is using a DynamoDB table to maintain the mapping between the CloudFront configuration file and the snapshot name.

How to work with snapshots?

You can perform the following operations on snapshots on web console:

You can also perform the following operations on snapshots via API:

What does Snapshot saved?

Snapshot saves Cloudfront configuration as a configuration file, you can get the same cloudfront configuration through CLI: get-distribution-config. Our solution will save the configuration file in S3 and url in DynamoDB. You can use list_snapshots api to list all snapshots of one distribution.

How long will Snapshot been saved?

The snapshot will be saved in S3 bucket and will not automatically been deleted. The snapshot can only be deleted in Web Console or through delete_snapshot api.

How much will Snapshot cost?

Cloudfront configuration file is in JSON format and is around 3KB. Refer to Cost for more details.