Hello Kar,
Please take a look at
Tutorial #4: Writing and Submitting a Spark Application.
The first section, "Installing a Programming Language", mentions that the tutorial can be followed on any development environment, not just the EC2 example environment used in previous tutorials. If you already have a development environment set up with Spark and other language dependencies, you should be able to use the rest of the tutorial to deploy to an EC2 cluster, regardless of whether the development environment itself is on EC2.
Regards,
BU