Question: Action Notify, problem with Sns message #7351
Replies: 5 comments 2 replies
-
tools/c7n_mailer is used for delivering messages, the message sent to the topic or queue from a notify action is a actually a data payload (base64 zlib compressed son). mailer provides for sending to final destinations, looking up email address in ldap, templating messages, etc. |
Beta Was this translation helpful? Give feedback.
-
Yeah I know but I don't want to use SES, i am in Frankfurt and its not available here.
and as u can see, I have added SNS topic but for some reason it is now working for me. It sens weird msg when i add this topic to transport but i don't know how to specify msg body |
Beta Was this translation helpful? Give feedback.
-
mailer is required and can templated messages to a variety of transports ie. sns/smtp/ses/etc the sns transport for the notify action is a data channel. you have to configure mailer to listen on the other side (sns->sqs->mailer) to get it delivered/rendered for humans. |
Beta Was this translation helpful? Give feedback.
-
The documentation was not clear and needs to be improved. I'm facing the same issue without a solution. |
Beta Was this translation helpful? Give feedback.
-
Making the need for c7n-mailer more explicit in #9808 . Suggestions welcome if there's specific wording that would have helped avoid the confusion here. |
Beta Was this translation helpful? Give feedback.
-
Hi !
I have created policy with notify action and sns topic in AWS. I want to customize my message because now im getting something looks like a group of random letters. Any idea how to do this ? I can't see any information in docs.
policies:
resource: aws.ec2
filters:
actions:
subject: "CUSTODIAN - [{{ account }} {{ region }}]"
to:
transport:
type: sns
topic: cloudcustodian_notify_test
region: eu-central-1
attributes:
Name: 'AAAAAAAAA'
Message: 'asdasdasdasdas'
body: 'asdasdasdasdasda'
Beta Was this translation helpful? Give feedback.
All reactions