Skip to content
Arthur Halet edited this page Aug 31, 2020 · 17 revisions

Documentation for the



Provider for



Using the provider

Installations

Requirements: You need, of course, terraform (>=0.11.14) which is available here: https://www.terraform.io/downloads.html

Automatic

To install a specific version, set PROVIDER_CLOUDFOUNDRY_VERSION before executing the following command

$ export PROVIDER_CF_VERSION="v0.10.0"

via curl

$ bash -c "$(curl -fsSL https://raw.github.com/cloudfoundry-community/terraform-provider-cloudfoundry/master/bin/install.sh)"

via wget

$ bash -c "$(wget https://raw.github.com/cloudfoundry-community/terraform-provider-cloudfoundry/master/bin/install.sh -O -)"

Manually

  1. Get the build for your system in releases: https://github.com/cloudfoundry-community/terraform-provider-cf/releases/latest
  2. Create a plugins/<os>_<arch>/ directory inside terraform user folder for your: mkdir -p ~/.terraform.d/plugins/linux_amd64 or .terraform.d/plugins/darwin_amd64 for mac.
  3. Move the provider previously downloaded in this folder: mv /path/to/download/directory/terraform-provider-cloudfoundry ~/.terraform.d/plugins/<os>_<arch>/
  4. Ensure provider is executable: chmod +x ~/.terraform.d/plugins/<os>_<arch>/terraform-provider-cloudfoundry
  5. you can now performs any terraform action on cloudfoundry resources

Provider Use Cases

Terraform module to deploy Spring Cloud Data Flow

https://github.com/mevansam/spring-cloud-data-flow-terraform

Terraform module to deploy the HashiCorp Vault open service broker

https://github.com/mevansam/vault-service-broker-terraform

Clone this wiki locally