Skip to content

Commit c63c433

Browse files
philcaixetaamazon-meaisiah
andauthored
Reverting alignment noise lambdas/cloudfront-security/replicator.js
Co-authored-by: amazon-meaisiah <meaisiah@amazon.com>
1 parent 56a75e4 commit c63c433

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lambdas/cloudfront-security/replicator.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ exports.handler = async (event, context) => {
5252
if (event.RequestType === 'Create') {
5353
console.log('Creating function')
5454
const createResult = await lambdaEdge.createFunction({
55-
Code: {
56-
ZipFile: zipped
57-
},
58-
Description: '',
59-
FunctionName: functionName,
60-
Handler: 'index.handler',
61-
MemorySize: 128,
62-
Role: event.ResourceProperties.RoleArn,
63-
Runtime: 'nodejs12.x',
64-
Timeout: 1
55+
Code: {
56+
ZipFile: zipped
57+
},
58+
Description: '',
59+
FunctionName: functionName,
60+
Handler: 'index.handler',
61+
MemorySize: 128,
62+
Role: event.ResourceProperties.RoleArn,
63+
Runtime: 'nodejs12.x',
64+
Timeout: 1
6565
}).promise()
6666
await lambdaEdge.waitFor('functionExists', { FunctionName: functionName }).promise()
6767
await lambdaEdge.waitFor('functionActive', { FunctionName: functionName, $waiter: { delay: 2, maxAttempts: 5 } }).promise()

0 commit comments

Comments
 (0)