https://pulumi.com logo
#general
Title
# general
p

purple-lawyer-35555

08/03/2021, 10:01 AM
Hi all! anybody has a living example to achieve this? https://github.com/pulumi/pulumi-aws/issues/916 I would want to know when a BucketObject has been modified. thanks!
b

brave-planet-10645

08/03/2021, 10:12 AM
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