Invalidate files
You can use the CloudFront console to create and run an invalidation, display a list of the invalidations that you submitted previously, and display detailed information about an individual invalidation. You can also copy an existing invalidation, edit the list of file paths, and run the edited invalidation. You can't remove invalidations from the list.
Contents
Invalidate files
To invalidate files using the CloudFront console, do the following.
Copy, edit, and rerun an existing invalidation
You can copy an invalidation that you created previously, update the list of invalidation paths, and run the updated invalidation. You can't copy an existing invalidation, update the invalidation paths, and then save the updated invalidation without running it.
Important
If you copy an invalidation that is still in progress, update the list of invalidation paths, and then run the updated invalidation, CloudFront won't stop or delete the invalidation that you copied. If any invalidation paths appear in the original and in the copy, CloudFront will try to invalidate the files twice, and both invalidations will count against your maximum number of free invalidations for the month. If you already reached the maximum number of free invalidations, you will be charged for both invalidations of each file. For more information, see Concurrent invalidation request maximum.
To copy, edit, and rerun an existing invalidation
Sign in to the Amazon Web Services Management Console and open the CloudFront console at https://console.amazonaws.cn/cloudfront/v4/home
. -
Select the distribution that contains the invalidation that you want to copy.
-
Choose the Invalidations tab.
-
Choose the invalidation that you want to copy.
If you aren’t sure which invalidation you want to copy, you can choose an invalidation and choose View details to display detailed information about that invalidation.
-
Choose Copy to new.
-
Update the list of invalidation paths if applicable.
-
Choose Create invalidation.
Cancel invalidations
When you submit an invalidation request to CloudFront, CloudFront forwards the request to all edge locations within a few seconds, and each edge location starts processing the invalidation immediately. As a result, you can’t cancel an invalidation after you submit it.
List invalidations
You can display a list of the last 100 invalidations that you’ve created and
run for a distribution by using the CloudFront console. If you want to get a list of
more than 100 invalidations, use the ListInvalidations
API
operation. For more information, see ListInvalidations in the
Amazon CloudFront API Reference.
To list invalidations
Sign in to the Amazon Web Services Management Console and open the CloudFront console at https://console.amazonaws.cn/cloudfront/v4/home
. -
Select the distribution for which you want to display a list of invalidations.
-
Choose the Invalidations tab.
Note
You can’t remove invalidations from the list.
Display information about an invalidation
You can display detailed information about an invalidation, including distribution ID, invalidation ID, the status of the invalidation, the date and time that the invalidation was created, and a complete list of the invalidation paths.
To display information about an invalidation
Sign in to the Amazon Web Services Management Console and open the CloudFront console at https://console.amazonaws.cn/cloudfront/v4/home
. -
Select the distribution that contains the invalidation that you want to display detailed information for.
-
Choose the Invalidations tab.
-
Choose the applicable invalidation ID or select the invalidation ID and then choose View details.