Simple command-line utility for sending custom requests to K2 Cloud platform.
This is the bash version of c2-ec2 client.
Download K2 cloud api credentials - doc.
Populate c2rc.sh
with appropriate values.
Evaluate script: source <path_to_c2rc.sh>
.
Common request syntax:
$ ./c2-ec2.sh <action> <arg1> <value1> <arg2> <value2>
Send simple request:
$ ./c2-ec2.sh RunInstances ImageId cmi-078880A0 Description "Test instance" \
InstanceType m1.small MaxCount 1 MinCount 1 SecurityGroup.1 test