How to bend torso while keeping the same lenght like a dancer?

waving torso bent

how to bend bone like this without bendy bone?

thus the head must be STRAIGHT
can you help to do that with rigify?