I’m trying to integrate `command.local.Command` to...
# general
f
I’m trying to integrate
command.local.Command
to build an asset passed to the
source
of a
aws.s3.BucketObjectv2
. I’m a bit unclear what triggers the
create
command to rerun. My
create
command runs
make build
. This command will produce a file
service.jar
if necessary. At the moment, it seems like the
create
command will never rerun after resource creation. Is that expected? Should I be configuring the Command resource differently?
This is how my Command looks:
Copy code
const lambdaBuildCommand = new command.local.Command('lambda-build', {
    dir: 'processor-lambda',
    create: 'make build',
    update: '',
    assetPaths: ['target/service.jar']
  });