Skip to content

Commit

Permalink
Reverting alignment noise lambdas/cloudfront-security/replicator.js
Browse files Browse the repository at this point in the history
Co-authored-by: amazon-meaisiah <meaisiah@amazon.com>
  • Loading branch information
philcaixeta and amazon-meaisiah authored Dec 3, 2021
1 parent 56a75e4 commit c63c433
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lambdas/cloudfront-security/replicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ exports.handler = async (event, context) => {
if (event.RequestType === 'Create') {
console.log('Creating function')
const createResult = await lambdaEdge.createFunction({
Code: {
ZipFile: zipped
},
Description: '',
FunctionName: functionName,
Handler: 'index.handler',
MemorySize: 128,
Role: event.ResourceProperties.RoleArn,
Runtime: 'nodejs12.x',
Timeout: 1
Code: {
ZipFile: zipped
},
Description: '',
FunctionName: functionName,
Handler: 'index.handler',
MemorySize: 128,
Role: event.ResourceProperties.RoleArn,
Runtime: 'nodejs12.x',
Timeout: 1
}).promise()
await lambdaEdge.waitFor('functionExists', { FunctionName: functionName }).promise()
await lambdaEdge.waitFor('functionActive', { FunctionName: functionName, $waiter: { delay: 2, maxAttempts: 5 } }).promise()
Expand Down

0 comments on commit c63c433

Please sign in to comment.