I wanted to have one ec2 instance with two containers. One for performing backend operations using java. Another one to launch the shell scripts which also needs persistence storage.
I guess this can be achieved through ecs. But am not very well versed in ecs and also worried about DevOps when ecs need to be configured. So it it possible to have both containers without help of container service like ecs.