This module is an Cache Expiration plugin for AWS CloudFront
Note It can take 10-15 minutes to process invalidation requests. See the Invalidation Limits documentation for details.
It usually takes 10 to 15 minutes for CloudFront to complete your invalidation request, depending on the number of invalidation paths that you included in the request.
Installation
This module requires you to have the AWS SDK loaded in your classpath.
The recommended approach is to have a composer file in your project root, and run:
composer require aws/aws-sdk-php:~3.0
In order to have composers autoloader available to Drupal, add the following line to settings.php
require_once DRUPAL_ROOT . '/../vendor/autoload.php';
The above assumes Drupal is installed into a sub-directory of your project root, and /vendor lives in the project root.
Configuration
You need to provide a CloudFront Distribution ID. The simplest way is to add the following to settings.php:
$conf['expire_cloudfront_distribution_id'] = 'MY_DISTRIBUTION_ID';
AWS Authentication
This module does not require setting AWS access keys, and assumes you are following best practices and following the SDK Guide on Credentials
This means, either using:
- IAM Roles for EC2
- Exporting credentials using environment variables
- Using a profile in a ~/.aws/credentials file
Project information
Seeking new maintainer
The current maintainers are looking for new people to take ownership.No further development
No longer developed by its maintainers.- Project categories: Performance
1 site reports using this module
- Created by kim.pepper on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
