Note this just provisions instances, doesn't describe the group/vanilla plugin use here.
INFRAKIT_DIGITALOCEAN_ACCESS_TOKEN=<your token>
infrakit plugin start manager group vanilla digitalocean
infrakit local digitalocean/compute describe
Using the following example JSON (do-example.json
), pass the SSH key that already exists on the system (doctl compute ssh-key list
)
{
"Tags": {
"owner": "mccabe"
},
"Properties": {
"NamePrefix": "infrakit",
"Region": "lon1",
"Image": { "Slug" : "ubuntu-14-04-x64"},
"Size": "512mb",
"Tags": [
"infrakit-tag"
],
"SSHKeyNames": [
"infrakitkey"
]
}
}
I run a watch on doctl
to monitor whats being created. (watch doctl compute droplet list
)
infrakit local digitalocean/compute provision file:///path/to/your/json/do-example.json
infrakit local digitalocean/compute validate do-example.json
Get the ID (example 82361918
below) by running infrakit local digitalocean/compute describe
or doctl compute droplet list
.
infrakit local digitalocean/compute destroy 82361918