Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winebarrel/terraform-provider-redash
Terraform provider for Redash.
https://github.com/winebarrel/terraform-provider-redash
golang redash terraform
Last synced: 20 days ago
JSON representation
Terraform provider for Redash.
- Host: GitHub
- URL: https://github.com/winebarrel/terraform-provider-redash
- Owner: winebarrel
- License: mit
- Created: 2023-02-26T02:09:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-10T22:02:04.000Z (5 months ago)
- Last Synced: 2024-10-08T10:16:13.583Z (about 1 month ago)
- Topics: golang, redash, terraform
- Language: Go
- Homepage: https://registry.terraform.io/providers/winebarrel/redash
- Size: 190 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# terraform-provider-redash
[![CI](https://github.com/winebarrel/terraform-provider-redash/actions/workflows/ci.yml/badge.svg)](https://github.com/winebarrel/terraform-provider-redash/actions/workflows/ci.yml)
[![terraform docs](https://img.shields.io/badge/terraform-docs-%35835CC?logo=terraform)](https://registry.terraform.io/providers/winebarrel/redash/latest/docs)Terraform provider for [Redash](https://redash.io/).
## Usage
```tf
terraform {
required_providers {
redash = {
source = "winebarrel/redash"
}
}
}provider "redash" {
url = "http://localhost:5001" # default: $REDASH_URL
api_key = "..." # default: $REDASH_API_KEY
}resource "redash_data_source" "postgres" {
name = "postgres"
type = "pg"
options = jsonencode({
dbname = "postgres"
host = "postgres"
port = 5432
user = "postgres"
})
}resource "redash_query" "select_one" {
data_source_id = redash_data_source.postgres.id
name = "select one"
query = "select 1"
}
```## Tests
```sh
docker compose up -d
make redash-setup
make testacc
```## Run a development binary
```sh
docker compose up -d
make redash-setup
cp etc/redash.tf.sample redash.tf
make tf-plan
make tf-apply
```## Related Links
* https://github.com/winebarrel/redash-go