A Terraform provider for managing AWS Redshift objects: users, groups, schemas, databases, grants, default privileges, and datashares.
Published on the Terraform Registry and the OpenTofu Registry.
terraform {
required_providers {
redshift = {
source = "gr8-toolkit/redshift"
version = "~> 1.0"
}
}
}
provider "redshift" {
host = "my-cluster.us-east-1.redshift.amazonaws.com"
port = 5439
username = "admin"
password = var.redshift_password
database = "dev"
}See the registry documentation for the full list of resources and data sources.
git clone git@github.com:gr8-toolkit/terraform-provider-redshift.git
cd terraform-provider-redshift
make buildmake build runs gofmt, then go install, placing the binary in $GOPATH/bin.
Docs are generated from schema Description fields and the
examples/ directory using
tfplugindocs.
Files under docs/ are auto-generated — do not edit them manually.
Regenerate after changing the schema or examples:
make docReleases are fully automated via GitHub Actions and GoReleaser.
-
Update the changelog:
RELEASE_VERSION=v1.x.y \ CHANGELOG_GITHUB_TOKEN=<token> \ make changelog
-
Push the changelog commit:
git push origin master
-
Tag and push — this triggers the release workflow automatically:
RELEASE_VERSION=v1.x.y make release
The Release workflow builds cross-platform binaries, signs the checksums with GPG, and publishes the GitHub release.
See CONTRIBUTING.md.