This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing issue with es6 default export not being well handled post tran…
…spilation in lambda
- Loading branch information
Showing
2 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
import AwsCloudTrailListener from './aws_cloud_trail_listener'; | ||
|
||
export default { | ||
handler: (cloudtrailEvent, context) => { | ||
const enabledListeners = [ | ||
AwsCloudTrailListener.EC2.name, | ||
AwsCloudTrailListener.S3.name, | ||
AwsCloudTrailListener.AUTOSCALE_GROUPS.name, | ||
AwsCloudTrailListener.VPC.name, | ||
AwsCloudTrailListener.SUBNETS.name, | ||
AwsCloudTrailListener.ELB.name, | ||
AwsCloudTrailListener.EBS.name, | ||
AwsCloudTrailListener.INTERNET_GATEWAY.name, | ||
AwsCloudTrailListener.RDS.name, | ||
AwsCloudTrailListener.EMR.name, | ||
AwsCloudTrailListener.DATA_PIPELINE.name | ||
]; | ||
export function handler(cloudtrailEvent, context) { | ||
const enabledListeners = [ | ||
AwsCloudTrailListener.EC2.name, | ||
AwsCloudTrailListener.S3.name, | ||
AwsCloudTrailListener.AUTOSCALE_GROUPS.name, | ||
AwsCloudTrailListener.VPC.name, | ||
AwsCloudTrailListener.SUBNETS.name, | ||
AwsCloudTrailListener.ELB.name, | ||
AwsCloudTrailListener.EBS.name, | ||
AwsCloudTrailListener.INTERNET_GATEWAY.name, | ||
AwsCloudTrailListener.RDS.name, | ||
AwsCloudTrailListener.EMR.name, | ||
AwsCloudTrailListener.DATA_PIPELINE.name | ||
]; | ||
|
||
let listener = new AwsCloudTrailListener(cloudtrailEvent, context, enabledListeners); | ||
return listener.execute(); | ||
let listener = new AwsCloudTrailListener(cloudtrailEvent, context, enabledListeners); | ||
return listener.execute(); | ||
|
||
// context.succeed(); // Echo back the first key value | ||
// context.fail('Something went wrong'); | ||
} | ||
// context.succeed(); // Echo back the first key value | ||
// context.fail('Something went wrong'); | ||
}; |