Aram
09/02/2021, 8:46 AMFrank
Frank
const targetLabmda = new Function(this, 'targetFunction', {
code: Code.fromInline('exports.handler = function(event, ctx, cb) { return cb(null, "hi"); })'), // It's just a simple function for demonstration purpose only.
functionName: 'testTargetFunction',
runtime: Runtime.NODEJS_12_X,
handler: 'index.handler',
});
Aram
09/03/2021, 10:46 AMlambda-subminute-iterator
and if you include lambda subminute in you main stack and deploy that stack to different stages it will try to create that lambda-subminute-iterator
for each of them and since you already have a function with the same name under that account already then you'll get an error about an already existing resourceAram
09/03/2021, 10:47 AMFrank