Sean Matheson
02/22/2022, 3:24 PMonCreate / onUpdate / onDelete in the context of the sst.Script. I am looking to run DB migrations on each deploy. Do I have to mount the lambda against the onCreate and onUpdate properties? It is a bit confusing as the docs state that "It gets run on every deployment."Frank
Frank
onCreate and onUpdate in this case.Frank
onCreate gets run on the first run, and onUpdate gets run on each subsequent deploy.Sean Matheson
02/22/2022, 4:26 PMSean Matheson
02/22/2022, 4:26 PMSean Matheson
02/22/2022, 4:26 PMDerek Kershner
02/22/2022, 5:06 PMsst.Script works differently than cdk.CustomResource? The latter has onUpdate run during create AND updates: @aws-cdk/custom-resources module · AWS CDK (amazon.com)Frank
Script.onUpdate doesn’t get called on create.Sean Matheson
02/23/2022, 7:14 AM