automated-actions/AWS_EBS_VOLUME_LOST/SydneySummitDemo/aws_ebs_vol_lost_cfn.yaml [483:502]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    }
                    eventName = "AWS_EBS_VOLUME_LOST"
                    var snsPublishParams = {
                        Message: healthMessage, 
                        Subject: eventName,
                        TopicArn: snsTopic
                    };
                    sns.publish(snsPublishParams, function(err, data) {
                    if (err) {
                        const snsPublishErrorMessage = `Error publishing AWS Health event to SNS`;
                        console.log(snsPublishErrorMessage, err);
                        callback(snsPublishErrorMessage);
                        } 
                    else {
                        const snsPublishSuccessMessage = `Successfully got details from AWS Health event, ${!eventName} and published to SNS topic.`;
                        console.log(snsPublishSuccessMessage, data);
                        callback(null, event); //passthrough event
                        }
                    });
                  };
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/step_3_stepfunctions_reinvent_workshop.yml [324:343]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              }
              eventName = "AWS_EBS_VOLUME_LOST"
              var snsPublishParams = {
                  Message: healthMessage, 
                  Subject: eventName,
                  TopicArn: snsTopic
              };
              sns.publish(snsPublishParams, function(err, data) {
              if (err) {
                  const snsPublishErrorMessage = `Error publishing AWS Health event to SNS`;
                  console.log(snsPublishErrorMessage, err);
                  callback(snsPublishErrorMessage);
                  } 
              else {
                  const snsPublishSuccessMessage = `Successfully got details from AWS Health event, ${!eventName} and published to SNS topic.`;
                  console.log(snsPublishSuccessMessage, data);
                  callback(null, event); //passthrough event
                  }
              });
            };
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



