updated cloudfront distribution code