Skip to content

Commit 7d2561b

Browse files
committed
Update README
1 parent acd897c commit 7d2561b

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
1-
**NOTE:** this is a very rough prototype!!!
2-
31
# Terraform Static Registry
42

53
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.
4+
5+
This tool supports multiple different sources of provider information and multiple static server types.
6+
7+
To get started you create a configuration file similar to the following to tell the tool where to find your provider information:
8+
9+
```hcl
10+
provider "paultyng" "unifi" {
11+
github {
12+
repository = "paultyng/terraform-provider-unifi"
13+
public_key_file = "paultyng.asc"
14+
}
15+
}
16+
17+
provider "hashicorp" "null" {
18+
registry {
19+
source = "hashicorp/null"
20+
}
21+
}
22+
```
23+
24+
Then run the tool using `tfstaticregistry` and it will fetch the specified providers and build a static site.
25+
26+
## TODO
27+
28+
* Support provider renaming, currently the source name and destination names need to match or files and paths get out of sync
29+
* Manual provider source
30+
* S3 server type
31+
* Azure static site
32+
* Google static site

examples/netlify/site/registry.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ provider "hashicorp" "null" {
99
registry {
1010
source = "hashicorp/null"
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)