This can't be answered with the provided information.
Split it into different tasks and try to implememt one after another:
- From where do you get the position data?
If it is some kind of GPS device, check the documentation. Most GPS devices have a RS-232 serial or USB port.
- Which format has to be used when storing on the SD card (e.g. text format like with log files)?
Writing to a text file would be simplest of all your tasks. - Which cloud service is used?
The documentation should provide information on how to connect and store data. - How is the device connected to the internet (you mentioned a GSM modem)?
If this is a problem too: Check the documentation of the modem and learn about serial communication (it has a serial interface).
Once you have answered all those questions yourself you can start thinking about how specific tasks can be implemented in software.
If you got stuck at a specific task come back here. But you won't get complete code written for you here at CodeProject. You have to learn programming or find someone who is doing it for you.