Terraform 0.12.x Scalr Provider Installation

Local Installation

Tip

The provider should always be installed locally to ensure that any CLI command that needs the provider code will work, such as init, plan, apply. This is true even when Terraform configuration specifies a remote backend.

Follow these steps to install the provider locally:

  1. Download the correct binary for your OS, e,g, for Mac this will be terraform-provider-scalr_1.0.0-rc9_darwin_amd64.tar.gz

  2. Unzip and copy the provider file terraform-provider-scalr to either

{workspace}/terraform.d/plugins/darwin_amd64/terraform-provider-scalr

or

~/.terraform.d/plugins/terraform-provider-scalr

Remote Backend Installation

If your Terraform configuration specifies a remote backend configuration, then the provider needs to be installed into a sub-folder of the Terraform configuration workspace so that it will be uploaded to the remote workspace at the time of a run.

  • For Terraform configurations in VCS repos linked to workspaces in a Scalr remote backend, the Scalr provider must be added to the VCS repo.

  • For Terraform configurations being run via the CLI the provider must be added to local directory/folder where the Terraform configuration is held

Note

The linux_amd64 plugin is required for the Scalr remote backend.

Follow these steps,

  1. If working with a VCS based repo, clone or pull the repo locally.

  2. Download the binary for linux_amd64 for the version you require, e,g, terraform-provider-scalr_1.0.0-rc9_linux_amd64.tar.gz

  3. Copy terraform-provider-scalr to {workspace}/terraform.d/plugins/terraform-provider-scalr

  4. For a VCS based repo, commit and push back to the repo.

Now when you run terraform init; terraform apply, or a run is triggered by the VCS integration, the plugin will be automatically uploaded to the workspace.