Import existing configuration in Profitbricks to Terraform

Dear Profitbricks,

I would like to use Terraform tool to cover existing infrastructure in Profitbricks. I found on terraform page ( that there is possible to create state of current infrastructure, but unfortunately there is no Profitbricks provider on the list. I wonder if you are working on such solution?

If not, please tell me if there is a way to prepare configuration file .tf manually, where I can provide UUID for each element of the system. For example I would like to add block for Datacenter and add there UUID of existing datacenter in Profitbricks. As far as I can see there is no such option and during first run of Terraform, it will create datacenter with the same name, but different UUID, which is not acceptable.

//Virtual Data Center

resource "profitbricks_datacenter" "terraform_test_DC" {

name = "terraform_test_DC"

location = "de/fra"

description = "Test environment for Terraform"


Did you try to prepare config for existing infrastructure?

Regards, Rafal

  • Would be great to be able to read out an existing dc into a terraform script.

  • **bold**
  • _italics_
  • `code`
  • ```code block```
  • # Heading 1
  • ## Heading 2
  • > Quote

Hi Rafal,

That is not possible at the moment, but I have created a PR.