Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidji99/terraform-provider-split
Terraform Split provider
https://github.com/davidji99/terraform-provider-split
split split-testing splitio terraform terraform-provider
Last synced: 11 days ago
JSON representation
Terraform Split provider
- Host: GitHub
- URL: https://github.com/davidji99/terraform-provider-split
- Owner: davidji99
- License: mpl-2.0
- Created: 2021-03-16T21:34:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T17:18:13.000Z (5 months ago)
- Last Synced: 2024-10-12T04:45:40.320Z (26 days ago)
- Topics: split, split-testing, splitio, terraform, terraform-provider
- Language: Go
- Homepage: https://registry.terraform.io/providers/davidji99/split/latest
- Size: 425 KB
- Stars: 23
- Watchers: 3
- Forks: 8
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Terraform Provider Split
=========================This provider is used to configure certain resources supported by [Split API](https://docs.split.io/reference#introduction).
For provider bugs/questions, please open an issue on this repository.
Documentation
------------Documentation about resources and data sources can be found
[here](https://registry.terraform.io/providers/davidji99/split/latest/docs).Requirements
------------- [Terraform](https://www.terraform.io/downloads.html) `v0.13.x`+
- [Go](https://golang.org/doc/install) 1.18 (to build the provider plugin)Usage
-----```hcl
provider "split" {
version = "~> 0.1.0"
}
```Releases
------------Provider binaries can be found [here](https://github.com/davidji99/terraform-provider-split/releases).
Development
-----------If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.12+ is *required*).
If you wish to bump the provider version, you can do so in the file `version/version.go`.
### Build the Provider
To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
```shell script
$ make build
...
$ $GOPATH/bin/terraform-provider-split
...
```### Using the Provider
To use the dev provider with local Terraform, copy the freshly built plugin into Terraform's local plugins directory:
```sh
cp $GOPATH/bin/terraform-provider-split ~/.terraform.d/plugins/
```Set the split provider without a version constraint:
```hcl
provider "split" {}
```Then, initialize Terraform:
```shell script
terraform init
```### Testing
Please see the [TESTING](TESTING.md) guide for detailed instructions on running tests.
### Updating or adding dependencies
This project uses [Go Modules](https://github.com/golang/go/wiki/Modules) for dependency management.
This example will fetch a module at the release tag and record it in your project's `go.mod` and `go.sum` files.
It's a good idea to run `go mod tidy` afterward and then `go mod vendor` to copy the dependencies into a `vendor/` directory.If a module does not have release tags, then `module@SHA` can be used instead.