Custom Terraform CLI Builds
Terrakube will support terraform cli custom builds or custom cli mirrors, the only requirement is to expose an endpoint with the following structure:
Example endpoint:
https://terraform-mirror.example.com/
{
"name":"terraform",
"versions":{
"1.3.9":{
"builds":[
{
"arch":"amd64",
"filename":"terraform_1.3.9_linux_amd64.zip",
"name":"terraform",
"os":"linux",
"url":"https://releases.hashicorp.com/terraform/1.3.9/terraform_1.3.9_linux_amd64.zip",
"version":"1.3.9"
}
],
"name":"terraform",
"shasums":"terraform_1.3.9_SHA256SUMS",
"shasums_signature":"terraform_1.3.9_SHA256SUMS.sig",
"shasums_signatures":[
"terraform_1.3.9_SHA256SUMS.72D7468F.sig",
"terraform_1.3.9_SHA256SUMS.sig"
],
"version":"1.3.9"
}
}
}To support custom terrafom cli releases when using the helm chart us the following:
The API caches the release list in Redis so it does not call the index on every request, and keeps using the last known list if the index is briefly unreachable. Tune the cache with api.cache.releaseCacheExpirationMinutes (default 30). See Terraform Versions.
Last updated
Was this helpful?