I need to make a call from my website to an EC2 instance with an SSM's SendCommand. As I understand, dumping the result into an S3 bucket is the only option. My command is going to execute for some time (about a minute - two). The interface is supposed to show the 'waiting' state, like an animation of loading. After the completion of running the command on my EC2 I need o show the result of it, which will be dumped into an S3 bucket.
Please, advise on what is the best approach to know when the command running on EC2 is finished on my website.