I have heard of the strategy of hosting/serving a static website in S3 in a container. What is the advantage over putting it in elastic beanstalk?
I have drawn a quick architecture diagram to hopefully clear up the misconceptions.
S3 does not execute any Code. There is no Docker Container in here.
The pattern you're talking about looks roughly like this:
The benefit is that your comparatively expensive compute resources don't have to be wasted on service static content, which can be done by specialized and more inexpensive solutions such as S3.