首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我使用sns服务触发cloudcustodian策略时,SNS邮件消息以无法读取的格式发送

当我使用sns服务触发cloudcustodian策略时,SNS邮件消息以无法读取的格式发送
EN

Stack Overflow用户
提问于 2019-07-23 22:44:58
回答 1查看 262关注 0票数 0

当我使用sns服务触发托管策略时,消息以无法读取的格式发送。

来自c7n-mailerdefault.html

代码语言:javascript
复制
policies:
  - name: policyname-groups
    resource: security-group
    description: |
      Remove any rule from a security group that allows open ports ingress
      and notify the user who added the violating rule.
    filters:
     - type: ingress
       Cidr:
        value_type: cidr
        op: eq
        value: "0.0.0.0/0"
    mode:
       role: arn:aws:iam::92*****:role/Custodian
       schedule: 'cron(00/10 14 * * ? *)'
       type: periodic
    actions:
     - type: notify
       template: default.html
       priority_header: 1
       subject: " Created-[custodian {{ account }} - {{ region }}]"
       violation_desc: |
         " Which Had Rules Open To The World:"
       action_desc: |
         "taken"
         "Taken: The Violating Security Group Rule Needs to be Removed As It
         Violates Our Company's Cloud Policy. Please Refer To The Cloud FAQ."
       to:
         - mailid@domain.com
       transport:
         type: sns
         region: regionname
         topic: topicname
EN

回答 1

Stack Overflow用户

发布于 2019-09-13 02:34:59

c7n-mailer用于实际传递、查找地址和格式化要传递的消息。

https://cloudcustodian.io/docs/tools/c7n-mailer.html

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57166727

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档