Welcome to the Treehouse Community
Looking to learn something new?
Jackie Jen2,723 Points
Running Task on AWS ECS
I have search alot from google but can't find any possible solutions. Here is my problem
when i push my docker image (image1) to EC2 and run a task of specific file (map_process.js) on the image1. Basically the map_process.js file is to run a series of function and create a test1.txt file and log the data inside a test1.txt file. meaning that i have data in text1.txt file. then i run the 2nd task (upload_test1.js) to S3. But i coudn't upload it due to no such file exist. I'm pretty sure my code doest not have problems is because i try ssh into the server and run those task and the file is created and upload successfully.
So i suspect that everytime i run the task, the image is the "fresh". that mean when run map_process.js task create the test1.txt file. Then i run upload_test1.js the image is a "fresh" without the previous task the create the file.
How can i solve this problems? please advice