How to set up Amazon S3 replication in LocalStack?

I’ve been trying to set up replication between two buckets in Amazon S3 in LocalStack CLI (using awslocal) but so far I haven’t been able to make it work. I followed the official example but maybe I’m missing something that must be changed when using LocalStack. No error is thrown but in the end when I issue a put-object request the object is not replicated from the source to the destination bucket.