Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 918 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 918 Bytes

Terraform CloudStack Provider

CircleCI

This is a CloudStack provider for terraform.

Now Terraform has builtin CloudStack provider. You may want to use it.

Installation

$ go get github.com/atsaki/terraform-provider-cloudstack

Add cloudstack provier to ~/.terraformrc

providers {
    cs = "<YOUR GOPATH>/bin/terraform-provider-cloudstack"
}

Example

variable "end_point" {}
variable "api_key" {}
variable "secret_key" {}

provider "cs" {
  end_point   = "${var.end_point}"
  api_key    = "${var.api_key}"
  secret_key = "${var.secret_key}"
}

resource "cs_virtual_machine" "vm01" {
  zone_name = "zone01"
  service_offering_name = "t1.micro"
  template_name = "CentOS6.5"
  display_name = "vm01"
}