https://github.com/ibrahimcsae/invalidate-cloudfront-cache-on-s3-change
Python Lambda function to invalidate CloudFront cache whenever the S3 bucket gets updated via code pipeline.
https://github.com/ibrahimcsae/invalidate-cloudfront-cache-on-s3-change
aws cloudfront-invalidation lambda-functions python
Last synced: about 2 months ago
JSON representation
Python Lambda function to invalidate CloudFront cache whenever the S3 bucket gets updated via code pipeline.
- Host: GitHub
- URL: https://github.com/ibrahimcsae/invalidate-cloudfront-cache-on-s3-change
- Owner: IbrahimCSAE
- Created: 2022-03-31T19:14:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-31T23:23:48.000Z (about 3 years ago)
- Last Synced: 2025-01-31T11:17:44.149Z (4 months ago)
- Topics: aws, cloudfront-invalidation, lambda-functions, python
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Invalidate CloudFront cache whenever S3 bucket gets updated
• Python Lambda function to invalidate CloudFront cache whenever you update your S3 bucket via code pipeline.
# Steps
• Go to Code Pipeline, add stage, add action, select action provider as invoke AWS Lambda, select the lambda function.
• Edit the IAM role for the lambda function to allow it to interact with CloudFront and Code Pipeline
• All done!