Terraform 0.12.x Scalr Provider Installation¶
The provider should always be installed locally to ensure that any CLI command that needs the provider code will work, such as
apply. This is true even when Terraform configuration specifies a remote backend.
Follow these steps to install the provider locally:
Download the correct binary for your OS, e,g, for Mac this will be
Unzip and copy the provider file
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
The linux_amd64 plugin is required for the Scalr remote backend.
Follow these steps,
If working with a VCS based repo, clone or pull the repo locally.
Download the binary for linux_amd64 for the version you require, e,g,
Copy terraform-provider-scalr to
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.