terraform-cloudatcost

command module
v0.0.0-...-c024d38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2017 License: MIT Imports: 8 Imported by: 0

README

terraform-cloudatcost

cloudatcost provider terraform

References

https://github.com/cloudatcost/api

https://github.com/masayukioguni/go-cloudatcost/cloudatcost

https://github.com/Blackturtle123/go-cloudatcost/cloudatcost

The go-cloudatcost wrapper from masayukioguni has some old code that doesn't work anymore. The wrapper from BlackTurtle123 has the fixed code.

Features

Creating vm.

Choosing what run mode.

Update run mode.

Update vm, vm will be recreated.

Example

provider "cloudatcost" {
  api_key     = "key"
  login       = "email"
}

resource "cloudatcost_instance" "servera" {
  //currently not able of removing label, only updating it.
  "label"="serverd",
  "cpu"="1",
  "ram"="512",
  "storage"="10",
  "os"="CentOS 6.7 64bit",
  "runmode"="safe",
}

resource "cloudatcost_instance" "serverb" {
  "cpu"="1",
  "ram"="512",
  "storage"="20",
  "os"="CentOS 6.7 64bit",
  "runmode"="normal"
  //Without depends terraform makes those at the same time
  //This making it impossible for the API to know which is which server
  depends_on = ["cloudatcost_instance.servera"]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL