diff --git a/src/stack/iacStack.ts b/src/stack/iacStack.ts index c6a9bbcf..da70bb86 100644 --- a/src/stack/iacStack.ts +++ b/src/stack/iacStack.ts @@ -94,7 +94,9 @@ export class IacStack extends ros.Stack { if (readCodeSize(fnc.code) > CODE_ZIP_SIZE_LIMIT) { code = { ossBucketName: destinationBucket.attrName, - ossObjectName: fileSources?.find(({ fcName }) => fcName === fnc.name)?.objectKey, + ossObjectName: fileSources?.find( + ({ fcName }) => fcName === replaceReference(fnc.name, context), + )?.objectKey, }; } new fc.RosFunction(