Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mongey/terraform-provider-ksql
Terraform provider for managing KSQL queries
https://github.com/mongey/terraform-provider-ksql
ksql ksql-server terraform terraform-provider
Last synced: 15 days ago
JSON representation
Terraform provider for managing KSQL queries
- Host: GitHub
- URL: https://github.com/mongey/terraform-provider-ksql
- Owner: Mongey
- License: mit
- Created: 2018-06-13T01:11:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-29T13:54:24.000Z (about 4 years ago)
- Last Synced: 2024-06-21T07:35:17.457Z (5 months ago)
- Topics: ksql, ksql-server, terraform, terraform-provider
- Language: Go
- Homepage:
- Size: 36.2 MB
- Stars: 9
- Watchers: 4
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `terraform-provider-ksql`
[![CircleCI](https://circleci.com/gh/Mongey/terraform-provider-ksql.svg?style=svg&circle-token=320e9b975067221dd59cc169e83b8faf53ea5062)](https://circleci.com/gh/Mongey/terraform-provider-ksql)A [Terraform][1] plugin for managing [Confluent KSQL Server][2].
## Contents
* [Installation](#installation)
* [Developing](#developing)
* [`ksql` Provider](#provider-configuration)
* [Resources](#resources)
* [`ksql_stream`](#ksql_stream)
* [`ksql_table`](#ksql_table)## Installation
Download and extract the [latest
release](https://github.com/Mongey/terraform-provider-ksql/releases/latest) to
your [terraform plugin directory][third-party-plugins] (typically `~/.terraform.d/plugins/`)### Developing
0. [Install go][install-go]
0. Clone repository to: `$GOPATH/src/github.com/Mongey/terraform-provider-ksql`
``` bash
mkdir -p $GOPATH/src/github.com/Mongey/terraform-provider-ksql; cd $GOPATH/src/github.com/Mongey/
git clone https://github.com/Mongey/terraform-provider-ksql.git
```
0. Build the provider `make build`
0. Run the tests `make test`0. Build the provider `make build`
## Provider Configuration
### Example
```hcl
provider "ksql" {
url = "http://localhost:8083"
}
```## Resources
### `ksql_stream`A resource for managing KSQL streams
```hcl
resource "ksql_stream" "actions" {
name = "vip_actions"
query = "SELECT userid, page, action
FROM clickstream c
LEFT JOIN users u ON c.userid = u.user_id
WHERE u.level =
'Platinum';"
}
```### `ksql_table`
A resource for managing KSQL tables
```hcl
resource "ksql_table" "users" {
name = "users-thing"
query = "SELECT error_code,
count(*),
FROM monitoring_stream
WINDOW TUMBLING (SIZE 1 MINUTE)
WHERE type = 'ERROR'
GROUP BY error_code;"
}
}
```[install-go]: https://golang.org/doc/install#install
[1]: https://www.terraform.io
[2]: https://www.confluent.io/product/ksql/