19th April, 2022
2 Min read
Book a Demo
A CDN requires an origin server, which can be a S3 bucket. s3-trigger-purge-cdn are python scripts that run as Lambda functions, and are triggered by file uploads to the bucket. Once triggered, the Lambda function will attempt to purge the old file from the CDN cache. Currently supported CDN vendors:
Reduce your AWS costs by over 50%
Discover your Cloud Saving Potential – Answer just 5 simple questions. AppsFlyer, Playtika, Lufthansa, IBM, top leading companies are already using our FinOps services.
Standalone Legacy mode
While I started as a project with separate parts for each CDN vendor, the standalone parts will not be maintained anymore.
Features:
Environment variables will be loaded only at the Lambda cold start
debug
<true|false>config_file
defaults to multicdn.config.ymlpip install -r requirements.txt -t .
This is in order to be able to create a full deployable package for Lambdaconfig.py
files in each vendor’s folder.Creating an Edgecast API key: https://support.globaldots.com/hc/en-us/articles/115004003749-Edgecast-Allowing-API-access
Adding authentication to Fastly purge: https://docs.fastly.com/guides/purging/authenticating-api-purge-requests
Good luck!
Schedule a call with our experts. Discover new technology and get recommendations to improve your performance.