Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1003 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 1003 Bytes

terraform-provider-compose

Terraform provider for IBM Cloud (formerly Bluemix) based Compose databases

Based on:

Usage:

provider "compose" {
  bluemix_api_key = "${var.ibm_bmx_api_key}" # if not set, the BM_API_KEY environment variable is read
  region          = "${var.ibm_bmx_region}"  # if not set, the BM_REGION environment variable is read (default: us-south)
}

resource "compose_whitelist" "test_ip" {
  ip            = "1.2.3.4/32"
  description   = "whitelist test"
  deployment_id = "bmix-dal-yp-d02b2b39-f7a2-4c99-97f5-3f34d56db2b7"
}

Import:

terraform import compose_whitelist.test_ip [email protected]/32

Installation:

go get github.com/ustream/terraform-provider-compose

# In ~/.terraformrc

providers {
    compose = "${GOPATH}/bin/terraform-provider-compose"
}