compress stdout to enable notifications through SNS