famous-dog-78928
01/03/2024, 9:12 AMnarrow-needle-95047
01/03/2024, 9:23 AMnarrow-needle-95047
01/03/2024, 9:24 AMmillions-river-14466
01/03/2024, 3:51 PMcode: new pulumi.asset.AssetArchive({
// the FileAsset file name does not have to match the map key
// the map key is what the file will be in the lambda payload
// the file as known to the lambda will be used in the 'handler', above
'index.js': new pulumi.asset.FileAsset(`./lambda/jumpboxAccessReset/jumpboxAccessReset.js`),
}),
One slight wrinkle: we have to use ignoreChanges: ['code']
on the Function in Pulumi because we build and deploy from hosted CI/CD -- otherwise running previews locally will constantly generate changes because file paths are different.