https://github.com/ridwanbejo/terraform-cassandra-admin
Terraform module for managing Cassandra role, grant and database
https://github.com/ridwanbejo/terraform-cassandra-admin
acl apache automation cassandra database devops hashicorp hcl iac iam rbac sysadmin terraform
Last synced: 4 months ago
JSON representation
Terraform module for managing Cassandra role, grant and database
- Host: GitHub
- URL: https://github.com/ridwanbejo/terraform-cassandra-admin
- Owner: ridwanbejo
- License: bsd-3-clause
- Created: 2024-01-14T04:20:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T00:51:56.000Z (about 2 years ago)
- Last Synced: 2025-02-26T08:24:49.588Z (over 1 year ago)
- Topics: acl, apache, automation, cassandra, database, devops, hashicorp, hcl, iac, iam, rbac, sysadmin, terraform
- Language: HCL
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Cassandra Admin
This is a Terraform module for managing keyspace, grant and role at Cassandra. You can use this module both for commercial or non-commercial purposes.
Currently, you can manage these resources in Cassandra by using this module:
- keyspace
- grant
- role
Tested in:
- Apache Cassandra
## A. Prerequisites
Requirements:
- Terraform with version >= 1.4
## B. How to use this module for your Terraform project ?
You can check any examples projects that use this module under `examples` directory.
- keyspace-1-basic
- keyspace-2-multiple
- role-1-basic
- role-2-grant
- role-3-multiple
## C. Understanding tfvars scenarios
You can check any examples tfvars that use this module under `examples` directory.
- keyspace-1-basic
- keyspace-2-multiple
- role-1-basic
- role-2-grant
- role-3-multiple
## D. Ensuring quality
I am trying to follow these approaches for ensuring quality of the tf-module:
- **validate**, ensure my Terraform module is in correct configuration based on Terraform guideline
- **auto-format**, ensure my Terraform script is edited with correct format based on Terraform guideline
- **linter**, ensure my Terraform script is in correct format based on Terraform guideline
- **security**, ensure my Terraform module is free from CVE and stay compliance
- **automation**, run all above steps by using automation tool to improve development time and keep best quality before or after merging to Git repository
The tools:
- [terraform validate](https://developer.hashicorp.com/terraform/cli/commands)
- [terraform fmt](https://developer.hashicorp.com/terraform/cli/commands)
- [tflint](https://github.com/terraform-lint48ers/tflint)
- [tfsec](https://github.com/aquasecurity/tfsec)
- [Pre-commit](https://pre-commit.com/)
- Github Action [Setup Terraform pipeline](https://github.com/hashicorp/setup-terraform)
## E. How to contribute ?
If you find any issue, you can raise it here at our [Issue Tracker](https://github.com/ridwanbejo/terraform-cassandra-admin/issues)
If you have something that you want to merge to this repo, just raise [Pull Requests](https://github.com/ridwanbejo/terraform-cassandra-admin/pulls)
Ensure that you install all the tools from section D. for development purpose.