Skip to content
This repository has been archived by the owner on Sep 1, 2018. It is now read-only.

BlackTurtle123/terraform-cloudatcost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"]
}

About

cloudatcost provider terraform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages