So, my cloud deployment marathon week met me with Fog. It could be used for cross cloud service compatibility. I don’t care much about that, but simplicity is cool. Fog is a RubyGem and should be installed with:
1
| |
Working with irb is fine. Two access keys are provided with Amazon AWS registration, they should be used here:
1 2 3 4 5 6 7 8 9 | |
The connection object allows EC2 API calls. Now a server object could be created, by providing SSH access keys:
1
| |
The server object is a working Ubuntu instance on Amazon EC2. It is a Micro instance, 64-bit CPU, 613 MB RAM, 8 GB partition on Amazon EBS and 15 GB bandwith. The AWS Free Usage Tier conditions should be available here. Sending SSH commands with the server object is easy:
1
| |
Of course the server is also available with the standart SSH client, but a public IP is needed:
1
| |
The server instance is not removed or stopped with irb termination. All running instances could be destroyed
using the connection object:
1
| |
One server instance per user on Amazon EC2 could run free of charge for one year. As usual with cloud providers, that depends on its resource usage. The payment thresholds are reasonably high. Usage statistics are available here.







