I just started with Amazon web services, and I have an EC2 instance. I downloaded the JAVA SDK and the Eclipse toolbox. I am able to run a sample program locally on my PC and connect to the Amazon databases, etc. My question is, what do I need to do to get this working on my EC2 instance? This may not even be specific to AWS. On Eclipse, I can just “Run as Application” and run any code. On the server side, what do I need to do? Should I ftp over my .java files? Should I export it to a jar and upload that? Do I need to install anything special to actually run it?
I’m just trying to run the basic DynamoDB example that connects to the database and adds a new table and row
The easiest way is to upload your .class (or .jar) to your EC2 and run it there.
If you are not limited to that particular instance of EC2 you can use Amazon Beanstalk which let’s say a tomcat container to run your code. That way you can deploy the “app” from Eclipse.