Community

state of terraform provider

Hi, could you tell me, how to get the terraform-provider up and running? There seems to be a lot of broken links and outdated docs out there. Many thanks, Uli

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

Hello Uli,

Terraform has made significant changes to how providers are managed. With release 0.10.0, they no longer ship any specific provider support with the terraform binary. If you download the latest release, then you can add a section like this to your main.tf, or whatever .tf file you are using:

provider "profitbricks" {
  retries = 100
}

Now run terraform init and the provider will be retrieved. On Windows, it should give you some output like this:

PS C:\Downloads\terraform_0.10.0_windows_amd64> .\terraform.exe init

Initializing provider plugins...
- Downloading plugin for provider "profitbricks"...

The following providers do not have any version constraints in configuration,
so the latest version was installed.

To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.

* provider.profitbricks: version = "~> 0.1"

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

At this point you can continue to work with Terraform to manage ProfitBricks resources.

If you happen to want to verify which providers are available to terraform, then pass it the providers option:

PS C:\Downloads\terraform_0.10.0_windows_amd64> .\terraform.exe providers
.
└── provider.profitbricks

In this case, the only provider currently installed is "profitbricks".

We should be getting the documentation that is available here on DevOps Central updated this week. Hopefully this response will get you going again in the meantime.

Eric

  • Hi Eric, that helps :-) Thanks, Uli