magnificent-soccer-44287
02/17/2024, 10:29 PMcommand.local.runOutput({
command: pulumi.interpolate`bash ./compileAndExtract.sh && aws s3 sync ./syncFolder s3://${assetsBucket.bucket} --delete --exact-timestamps && rm -rf syncFolder`,
});
That script basically creates a docker image and uploads some PWA assets to s3. It seems like this is actually fully executed during 'pulumi preview' (ie., the preview command triggers an S3 bucket overwrite)
Was this intended by design? I can understand how it's difficult if not impossible to 'preview' an arbitrary command but I'm not sure many folks would expect it to outright just run during preview.miniature-musician-31262
02/18/2024, 12:32 PMThis command will always be run on any preview or deployment. Use local.Command to avoid duplicating executions.You’re probably looking for the behavior of local.Command.
magnificent-soccer-44287
02/18/2024, 5:37 PMminiature-musician-31262
02/18/2024, 6:25 PM