https://github.com/sjelfull/craft-cloudfrontinvalidation
Invalidate your cached assets on CloudFront
https://github.com/sjelfull/craft-cloudfrontinvalidation
craftcms craftcms-plugin
Last synced: about 1 year ago
JSON representation
Invalidate your cached assets on CloudFront
- Host: GitHub
- URL: https://github.com/sjelfull/craft-cloudfrontinvalidation
- Owner: sjelfull
- License: mit
- Created: 2016-03-26T11:34:40.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-23T20:38:32.000Z (about 8 years ago)
- Last Synced: 2025-03-24T21:04:50.031Z (over 1 year ago)
- Topics: craftcms, craftcms-plugin
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CloudFront Invalidation plugin for Craft CMS
Invalidate the CloudFront cache for your assets from the toolbar.
## Installation
To install CloudFront invalidation, follow these steps:
1. Download & unzip the file and place the `cloudfrontinvalidation` directory into your `craft/plugins` directory
2. -OR- do a `git clone https://github.com/sjelfull/cloudfrontinvalidation.git` directly into your `craft/plugins` folder. You can then update it with `git pull`
3. Install plugin in the Craft Control Panel under Settings > Plugins
4. The plugin folder should be named `cloudfrontinvalidation` for Craft to see it. GitHub recently started appending `-master` (the branch name) to the name of the folder for zip file downloads.
CloudFront invalidation works on Craft 2.4.x, Craft 2.5.x and Craft 2.6.x, and requires PHP 5.4.* or higher.
## Configuring
The plugin will use the S3 key/secret defined in your Asset Source settings, but you need to provide the CloudFront Distribution ID. You can get it from [the AWS Console](https://console.aws.amazon.com/cloudfront/home).
You will also need to ensure that the IAM user has the follow policies set to allow:
* `cloudfront:CreateInvalidation`
* `cloudfront:ListInvalidations`
## Roadmap
* Add option to invalidate all assets
## Changelog
### 1.0.0 -- 2016.03.24
* Initial release
Brought to you by [Fred Carlsen](http://sjelfull.no)