Closed leonstafford closed 4 years ago
@sgerlach reported that the CallerReference must be unique each time (see https://docs.aws.amazon.com/cli/latest/reference/cloudfront/create-invalidation.html). This should be fixed at the same time. I'd like to look into this at some point and find a more efficient solution than invalidating the entire cache, as that can get very costly very quickly.
previously fixed
from https://forum.wp2static.com/-181/cloudfront-cache-invalidation-s3-delpyment-v10-alpha-006#post-1
Also, passing the credentials into the CloudFrontClient is not working as coded up. I rewrote it locally as
And its working correctly. Apparently they implement the factory on the CloudFrontClient in v3 and not on the s3 client. Would also be handy to have some wp2static logging when the crawl, process, and invalidation jobs end ie Invalidating CloudFront Complete Invalidating all CloudFront Items