For more information, see Amazon Cloud Front Pricing.
If the invalidation path is a directory and if you have not standardized on a method for specifying directories—with or without a trailing slash (/)—we recommend that you invalidate the directory both with and without a trailing slash, for example, You can use the Cloud Front console or Cloud Front API actions 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 object paths, and run the edited invalidation.
See the applicable topic: You can copy an invalidation that you created previously, update the list of invalidation paths, and run the updated invalidation.
For more information about the charges for invalidation, see Paying for Object Invalidation.
To control the versions of objects that are served from your distribution, you can either invalidate objects or give them versioned file names.
Also, if you use the AWS command line interface (CLI) for invalidating objects and you specify a path that includes the The maximum length of a path is 4,000 characters.
If you've already reached the maximum number of free invalidations, you'll be charged for both invalidations of each object. When you submit an invalidation request to Cloud Front, Cloud Front forwards the request to all edge locations within a few seconds, and each edge location starts processing the invalidation immediately.
Important You can invalidate most types of objects that are served by a web distribution, but you cannot invalidate media files in the Microsoft Smooth Streaming format when you have enabled Smooth Streaming for the corresponding cache behavior.
In addition, you cannot invalidate objects that are served by an RTMP distribution.
You cannot copy an existing invalidation, update the invalidation paths, and 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 run the updated invalidation, Cloud Front will not stop or delete the invalidation that you copied.