For development and debug I would like to run a NodeJS app on my laptop and make it available as a task running on ECS Fargate.
I can do that in a EC2 instance instead (without ECS). I do reverse port forwarding from my local NodeJS app port to the EC2 80 port (using SSM and EC2's instanceId), so that my local NodeJS app is available to http://<EC2_PUBLIC_IP> . As such, any http call to http://<EC2_PUBLIC_IP> is actually served by my local laptop, and therefore I can debug with my IDE as usual.
I am wondering if there is a way to do reverse port forwarding to Fargate by SSM (on Fargate there is no instace id to use for that). Ideally, I would connect to the Fargate container without opening 22 port or so...