Setup is not uploading static files
Opened this issue · 4 comments
Set up was as follows
In aws/script.ts
const deployment = new SPADeploy(this, 'spaDeployment').createSiteWithCloudfront({
indexDoc: 'index.html',
websiteFolder: '../static',
certificateARN: certificate.certificateArn,
cfAliases: [domain, `*.${domain}`]
})
File structure:
project/
|
|--aws/script.ts
|--static/index.html
I would expect the bucket with name domain
to have a file at domain/index.html
at the end of the deployment. But it does not have that file.
I'll take a look today, what version of CDK are you using?
I know 1.81.0 broke the s3 upload construct so 1.82 was just released which hopefully fixes some issues
Also thinking out loud wondering if it is cloudfront configuration related because https://github.com/cdk-patterns/serverless/blob/master/the-media-live-stream/typescript/lib/the-media-live-stream-website.ts#L29 uses the basic deployment with a static file. Either way I will dig in today
I just deployed one of my domains with the above configuration and a static index.html file, it worked as expected for me.