AWS EC2 instance crashing whenever I run my python program

129 views Asked by At

I have a Python program for Data Collection from various sources, and then storing the data to my AWS Database using python. I have developed the code using Python 3.8.

The code runs perfectly on my local machine, but when I try to run the code on my ec2 instance, the instance completely freezes and becomes inaccessible and I have to reboot the instance to start it again.

My instance is a t2.micro. I am guessing the reason for this issue might be the processing capability of the instance? Is there any other angle that I am missing here?

1

There are 1 answers

0
paty CB On

its looks like someting about instance capacity try with t3 micro o medium

https://aws.amazon.com/ec2/instance-types/?nc1=h_ls