use aws-sdk to PUT pipeline definition and handle validation errors

@adamjt