问题标签 [cloudcustodian]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
13 浏览

json - 我可以在出现在 AWS 上的 Lambda 函数中的 Json 文件中添加额外行吗?

我有一个 lambda 函数(cloud-custodian-mailer),我在其中存储来自 CloudCustodian 的 json 文件。这些文件是 slack 模板,用于向 slack 发送电子邮件通知。例如,在该电子邮件中告诉我缺少标签的 s3 存储桶的名称。

但是在松弛的电子邮件中,所有的桶都没有换行。我尝试将“\n”添加到 Json 文件中,然后更新 Lambda 函数,但没有。

这是Json文件的代码: