Skip to content

Commit 1ecc242

Browse files
authored
allow invokedFunctionArn account ID override
allow the invokedFunctionArn's account ID to be overridden via AWS_ACCOUNT_ID env
1 parent 7a4836d commit 1ecc242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Context.prototype.createInvokeFunctionArn = function() {
7373
'aws',
7474
'lambda',
7575
process.env.AWS_REGION,
76-
Math.round(Math.random() * 1000000000000).toString(),
76+
process.env.AWS_ACCOUNT_ID || Math.round(Math.random() * 1000000000000).toString(),
7777
'function',
7878
this.functionName,
7979
this.functionVersion

0 commit comments

Comments
 (0)