Skip to content

Latest commit

 

History

History
14 lines (6 loc) · 453 Bytes

File metadata and controls

14 lines (6 loc) · 453 Bytes

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!