I am trying to understand how to deploy an Amazon Kinesis Client application that was built using the Kinesis client library (KCL).

I found [this](http://docs.aws.amazon.com/kinesis/latest/dev/step-four-operate-the-app.html) but it only states

> 
> You can follow your own best practices for deploying code to an Amazon EC2 instance when you deploy a Amazon Kinesis application. For example, you can add your Amazon Kinesis application to one of your Amazon EC2 AMIs.
> 
> 
> 

which is not giving a broader picture to me. 

[These examples](https://github.com/awslabs/amazon-kinesis-connectors/tree/master/samples) use an Ant script to run Java program. Is this the best practice to follow?

Also, I understand even before running the EC2 instances I need to make sure 

1. The developed code JAR/WAR or any other format needs to be on the EC2 instance
2. The EC2 instance needs to have all the required environment like Ant setup in place already to execute the program.

Could someone please add some more detail on this?