Hi, This is kind of difficult to explain. I have a flow that performs a job over an EC2 Instance, and the problem is that sometimes it fails and the most of times, it succeed. The job that runs, do the following operations:
1- Download a jar from somewhere.
2- Download some script from github.
3- Execute the script with some sort of arguments. And what it does, is download data from AWS S3, process the files downloaded, and then upload the results.
The errors that I usually got are like
•
Main class from jar could not be found
•
The output directory does not exists, so it could not be synchronize to AWS S3
Do you have any idea of why these types of issues happens time to time?
BTW: I am using
boto3
SSM
agent to handle EC2 Instances creation, execution and termination