
This post is part of a series on Terraform State & Backends: The Complete Guide.
To use a custom provider in Scalr, there are just a few simple steps to make this work.
To use it in Scalr, the provider needs to be installed in a sub-folder of the Terraform 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 the local directory/folder where the Terraform configuration is held.
Follow these steps:
terraform-provider-name_1.0.0_linux_amd64.tar.gz{workspace}/terraform.d/plugins/terraform-provider-nameNow when you run terraform init; terraform apply, or a run is triggered by pull request automation, the plugin will be automatically uploaded to the workspace.
