Remote kafka with local kafka streams application setup

I am trying to setup the following scenario and I wonder if this is actually possible?

On my local development machine I want to run a spring boot kafka streams application that consumes some topics from a remote kafka (AWS MSK, SASL protected).
Any technical topics (e.g. for state store persistence) shall be created in a local kafka setup (simple docker compose with zookeeper, kafka). Also I want the output of my kafka streams processing to be written to the local kafka.

I was creating an example as described here:

Hoever I don’t get the expected setup up and running, hence I wonder if that actually possible, what I plan to do?
If possible, is there a working example that I can use as a base for my project?

Thanks a lot!