如何将数据从CloudWatch事件规则传递给Lambda?
我在CDK包中创建了一个lambda。我想创建一个触发lambda的CloudWatch Eventbridge规则。我想使用CloudWatch规则本身将我的值传递给Lambda。 我不想对CDK代码进行任何更改。我该怎么做?有什么可能的选择?
我可以使用标签或事件吗?
I have created a Lambda in CDK Package. I want to create a CloudWatch EventBridge Rule that triggers a Lambda. I want to pass my values to the Lambda using the CloudWatch Rule itself.
I don't want to make any changes to the CDK code. How can I do it? What are the possible options?
Can I use Tags or Events?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将数据从CloudWatch规则传递给LAMBDA,通过将JSON作为输入传递来触发它。将输入JSON传递到目标。
例子:
You can pass data from Cloudwatch Rule to the lambda that it triggers by passing a JSON as Input. Pass the Input JSON to the Target.
Example: