Is there any change that could be made to things w...
# seed
m
Is there any change that could be made to things when I am releasing my StaticSite. Not sure if this would be considered a Seed thing or an SST thing, but the way StaticSite is setup currently Every time I update the static site which only requires a push to the S3 bucket, We also get an update to the Cloudfront Distribution as well as a Cache Invalidation. Cache Invalidation isn't required for my stuff (and most webpack, vite, etc...) built site because it has a hash on all the filenames.
Copy code
INFO: Deploying 5 stacks...
:white_check_mark: dev-chartflow-OpensearchStack: No changes
✅ dev-chartflow-dynamodb-stack: No changes
✅ dev-chartflow-s3-stack: No changes
✅ dev-chartflow-api-stack: No changes
✅ dev-chartflow-site-stack: Deployed
21:14:32 | UPDATE_IN_PROGRESS                  | AWS::CloudFormation::Stack        | dev-chartflow-site-stack
21:15:08 | UPDATE_IN_PROGRESS                  | Custom::SSTBucketDeployment       | VueJSSiteS3Deployment85171F74
21:15:18 | UPDATE_COMPLETE                     | Custom::SSTBucketDeployment       | VueJSSiteS3Deployment85171F74
21:15:22 | UPDATE_IN_PROGRESS                  | AWS::CloudFront::Distribution     | VueJSSiteDistribution0F53F017
21:18:24 | UPDATE_COMPLETE                     | AWS::CloudFront::Distribution     | VueJSSiteDistribution0F53F017
21:18:29 | UPDATE_IN_PROGRESS                  | Custom::SSTCloudFrontInvalidation | VueJSSiteCloudFrontInvalidation083FD2F2
21:20:33 | UPDATE_COMPLETE                     | Custom::SSTCloudFrontInvalidation | VueJSSiteCloudFrontInvalidation083FD2F2
21:20:36 | UPDATE_COMPLETE_CLEANUP_IN_PROGRESS | AWS::CloudFormation::Stack        | dev-chartflow-site-stack
21:20:37 | UPDATE_COMPLETE                     | AWS::CloudFormation::Stack        | dev-chartflow-site-stack
Most of the time was spent in the CloudFront stuff
f
Hey @Michael Robellard, we are working on making it faster by: 1. not updating the CF distribution; and 2. not having to wait for cache invalidation.
In this case, the deploy should finish within seconds after this.
Copy code
21:15:18 | UPDATE_COMPLETE                     | Custom::SSTBucketDeployment       | VueJSSiteS3Deployment85171F74
I will keep you posted
Hey @Michael Robellard, made the following changes in v0.61.3: • no more updating CloudFront Distribution • added waitForInvalidation flag to optionally not waiting for cache to finish invalidating
^ as a side note, I think u still need to invalidate the
index.html
even if ur assets have hashed names
m
Updated to the latest version. Thanks for fixing that. It will make a big diiference
f
Haha nice! 👍