https://github.com/yext/terraform-provider-site
https://github.com/yext/terraform-provider-site
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/yext/terraform-provider-site
- Owner: yext
- Created: 2024-06-17T23:25:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-21T22:26:11.000Z (over 1 year ago)
- Last Synced: 2025-05-29T10:01:09.434Z (about 1 year ago)
- Language: Go
- Size: 37.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Provider Site
## Requirements
- [Terraform](https://www.terraform.io/downloads.html) 0.14.x
- [Go](https://golang.org/doc/install) 1.19 (to build the provider plugin)
## Building
```sh
$ git clone git@github.com:yext/terraform-provider-site
$ cd terraform-provider-site
$ go build
```
## Installation
- Install the plugin per [these instructions](https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin).
- After placing it into your plugins directory, run `terraform init` to initialize it.
# Data Resources
## site_filter
### Inputs
#### `site_yamls`
- Type: `map(string)`
- Required
A map of site config YAMLs, keyed by site ID.
#### `filter`
- Type: `string`
- Required
A valid [github.com/gobwas/glob](https://github.com/gobwas/glob) glob for matching site
fully-qualified names (FQN's).
#### `separator`
- Type: `string`
- Optional (default: `"."`)
A single-character separator for the glob.
### Outputs
#### `sites`
- Type: `set(string)`
A set of site IDs from the keys of `site_yamls`, whose FQNs match `filter`.