You could set up a subscription on the S3 bucket which would trigger a Lambda function that would invalidate the cloudfront cache
p
purple-lawyer-35555
08/03/2021, 10:55 AM
why I cannot do it directly from within pulumi deploy script, as suggested in above link? I just wanted to know what are the bucket objects that differ from last deploy, append them into a list, and later run manually the invalidations with aws-sdk