Skip to content

Commit b5dabb8

Browse files
committed
Add subject
1 parent c2e829b commit b5dabb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,14 @@ async fn function_handler(event: LambdaEvent<LogsEvent>) -> Result<(), Error> {
5555
a[3]
5656
);
5757

58+
let subject = match a[1] {
59+
"whslabs-cardano-node" => "New Cardano node",
60+
_ => "New AMI",
61+
};
62+
5863
let rsp = client
5964
.publish()
65+
.subject(subject)
6066
.topic_arn(std::env::var("TOPIC_ARN").unwrap())
6167
.message(format!(
6268
"{} {} {}",

0 commit comments

Comments
 (0)