Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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