Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paultyng/tf-static-registry
A Terraform Registry static site generator
https://github.com/paultyng/tf-static-registry
netlify terraform terraform-providers terraform-registry
Last synced: 2 months ago
JSON representation
A Terraform Registry static site generator
- Host: GitHub
- URL: https://github.com/paultyng/tf-static-registry
- Owner: paultyng
- Created: 2018-11-13T16:18:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T13:53:58.000Z (about 4 years ago)
- Last Synced: 2024-09-27T19:20:59.845Z (3 months ago)
- Topics: netlify, terraform, terraform-providers, terraform-registry
- Language: Go
- Homepage:
- Size: 5.02 MB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Static Registry
This tool can generate a static Terraform Provider registry. The registry is minimalistic, only providing the endpoints expected by `terraform init`, not the entire registry protocol.
This tool supports multiple different sources of provider information and multiple static server types.
To get started you create a configuration file similar to the following to tell the tool where to find your provider information:
```hcl
provider "paultyng" "unifi" {
github {
repository = "paultyng/terraform-provider-unifi"
public_key_file = "paultyng.asc"
}
}provider "hashicorp" "null" {
registry {
source = "hashicorp/null"
}
}
```Then run the tool using `tfstaticregistry` and it will fetch the specified providers and build a static site.
See the [examples/netlify/site] directory for an example configuration and Netlify setup, and the [examples/netlify/tf] directory for a test Terraform configuration.
## TODO
* Support provider renaming, currently the source name and destination names need to match or files and paths get out of sync
* Manual provider source
* S3 server type
* Azure static site
* Google static site