Is there a way to create a Cf distribution for a S...
# help
d
Is there a way to create a Cf distribution for a S3 bucket with the same configuration than StaticSite? (Https redirection, cors, etc etc) ? Or should I use
aws-cdk-lib
 » 
aws_cloudfront
 » 
Distribution
instead?
f
Yup, that’s what
StaticSite
does behind the scene
d
Is there a way to “duplicate” the CFD perhaps? Or at least, can you point to the piece of code that does that in SST? The configuration used there is pretty perfect for my use case.
f
@Daniel Gato sorry for the late followup. Here’s the function that’s creating the distribution https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/src/StaticSite.ts#L349
d
Thank you!