You can use JMeter in the Cloud to record your script directly to the cloud environment. To do so, please follow the steps described bellow.
Launch JMeter Console
Choose Script creation only. Choosing this option will launch one server for the JMeter console and will allow you to record, write and debug your test script.

This step is not mandatory.
Discover Console Host Name
For the next step you will need a host name and port number for the proxy configuration.
The Console host name can be found Under Logs -> Network Information.

The PublicDNS field in the first line is the public host name of the JMeter Console.
Available Ports
You can choose any port from port 32000 to 64000. Any port below 32000 is closed. For example: port 32100 is a good port number, so is port 36150.
Browser Configuration
Now, configure your browser to use the JMeter Console as proxy using the host name and port number.

Further Instructions
Further instruction as how to use JMeter for recording can be found in here.
