numerous-toddler-2403806/10/2023, 4:20 PM
to enumerate the relevant assets from the build bucket, followed by
to download all of them, and finally recreating new
s with the cache-control headers specified. However, it doesn't look like that will work because
is hard coded to only allow downloading the content if the Content-Type is
and I have some images.
I also looked into using
, but Assets in general seem to be a bit rough around the edges at the moment based on current issues like https://github.com/pulumi/pulumi/issues/6235 and it's unclear to me how to actually use
with authentication (if that's even possible).
Another approach could be downloading the assets from S3 into a temporary directory and then using FileAsset.
Is there a better way to accomplish this? I think if I do the initial upload into the build bucket with pulumi things would be easier, but I want to avoid going down the wrong path here.