I manually downloaded and installed the Terraform Provider Time on my server.
I work in a closed environment and so I can’t reference/access commercial services on the commercial internet.
I would like to use this Provider.
I manually downloaded it from an internal repo, copied it to a folder off of .terraform.d called plugin-cache.
Created an environment variable called “TF_CLI_CONFIG_FILE” and pointed this variable to .terraformrc which has the following
plugin_cache_dir = “$HOME/.terraform.d/plugins”.
I then copied the unzipped Terraform Provider Time file i.e., “terraform-provider-time_v0.9.1_x5” to this folder.
I also included the following provider block:
terraform {
required_providers {
aws = {
version = “3.74.3”
}
time = “~> 9.1”
}
}
When I run terraform init, I receive the following errors:
Error: Failed to query available provider packages
Could not retrieve list of available versions for provider hashicorp/time: …
All modules should specifiy their required_providers so that external consumers will get the correct providers when using a module.
Can anyone provide any guidance/suggestions/recommendations on how I can use this manually downloaded Terraform Provider Time successfully?