Update all the packages and then clone the code. Clone your application's code repository onto the EC2 instance: ...
The returned Spark connection (sc) provides a remote dplyr data source to the Spark cluster. For more information on connecting to remote Spark clusters see the Deployment section of the sparklyr ...