Adding plugins to the Terraform Provider Service

This topic guides you through the steps to manually add plugins to the Terraform provider service.

  1. Get the Terraform plugin to be added to the Terraform provider service.
  2. Change the ownership of the plugin using the following command:
    chown 1111:1111 <plugin_file_name>
Note: The Terraform provider service version is 0.11. It does not support Terraform 0.12 plugins.
The Terraform provider service automatically downloads and initializes plugins that are not already initialized. The service can do this only for the plugins distributed by HarshiCorp. If you have third party plugins, you must manually add those to the Terraform provider service. To manually add the plugin the Terraform service container, complete the following steps:
  1. Get the Terraform provider service container ID using the following command:
    docker ps | grep icam-provider-terraform | awk '{print $1}
  2. Copy the plugin to the Terraform provider service using the following command:
    docker cp ./<plugin_file_name>
    <container_id>:/home/terraform/.terraform.d/plugins/
  3. Verify the plugin was copied and the permissions set correctly using the following command:
    docker exec <container_id> ls -alh
    /home/terraform/.terraform.d/plugins/<plugin_file_name>
  4. The output looks like this:
    -rwxr-xr-x 1 terraform terraform 25M Jul 24 19:50
    /home/terraform/.terraform.d/plugins/<plugin_file_name>