automated-actions/AWS_EBS_VOLUME_LOST/aws_ebs_vol_lost_cloudformation.yaml [486:503]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                      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, snsPublishSuccessMessage); //return success
                          }
                      });
                  };
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sns-topic-publisher/cfn-templates/sns-topic-publisher.yml [87:104]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                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, snsPublishSuccessMessage); //return success
                    }
                });
            };
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



