Terraform

September 2016 ยท 1 minute read

Terraform

Create a new file: test.tf

# Configure the OpenStack Provider
provider "openstack" {
    user_name  = ""
    tenant_name = ""
    password = ""
    auth_url  = "http://example.com:5000/v2.0"
}

resource "openstack_compute_instance_v2" "test-server" {
    name = "tf-test"
    key_pair = "yaser"
    security_groups = ["default"]
$ terraform plan
$ terraform apply