-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(aws-lambda-eventbridge) New Construct Implementation & bug fix #368
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
...ns-constructs/aws-eventbridge-kinesisfirehose-s3/test/eventbridge-kinesisfirehose-s3.test.ts
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/aws-lambda-eventbridge/lib/index.ts
Show resolved
Hide resolved
source/patterns/@aws-solutions-constructs/aws-lambda-eventbridge/lib/index.ts
Show resolved
Hide resolved
* and limitations under the License. | ||
*/ | ||
|
||
const aws = require('aws-sdk'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming you confirmed this works.
Can we reduce the indent level from 6 to 2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still looks like a mix of 5 spaces (line 17) and 8 spaces (line 18 and 19) ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking for:
const aws = require("aws-sdk");
const eventbridge = new aws.EventBridge();
exports.handler = () => {
const params = {
Entries: [
{
EventBusName: process.env.EVENTBUS_NAME,
Source: "solutionsconstructs",
DetailType: "test",
Detail: JSON.stringify({
Hello: "World",
}),
},
],
};
eventbridge.putEvents(params, function (err, data) {
if (err) {
throw Error("An error while putting the event.");
} else {
console.log("Event was successfully sent.");
}
});
};
...atterns/@aws-solutions-constructs/aws-lambda-eventbridge/test/aws-lambda-eventbridge.test.ts
Show resolved
Hide resolved
}); | ||
}); | ||
|
||
test('check multiple constructs in a single stack', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about a test that shares 1 event bus between 2 Lambda functions (create it with the first construct, share it in the second construct)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the test
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment in conversation about lambda function formatting.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Issue 344, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.