terraform-provider-csbsqlserver

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

terraform-provider-csbsqlserver

This is a highly specialised Terraform provider designed to be used exclusively with the Cloud Service Broker ("CSB") to manage binding and unbinding operations in a SQL Server instance.

Usage

terraform {
   required_providers {
      csbsqlserver = {
         source  = "cloudfoundry.org/cloud-service-broker/csbsqlserver"
         version = "1.0.0"
      }
   }
}

provider "csbsqlserver" {
   server   = "localhost"
   port     = 1433
   username = "SA"
   password = "YOUR_ADMIN_PASSWORD_HERE"
   database = "mydb"
   encrypt  = "disable"
}

resource "csbsqlserver_binding" "binding" {
   username = "test_user"
   password = "test_password"
   roles    = ["db_ddladmin", "db_datareader", "db_datawriter", "db_accessadmin"]
}

Releasing

To create a new GitHub release, decide on a new version number according to Semantic Versioning, and then:

  1. Create a tag on the main branch with a leading v: git tag vX.Y.X
  2. Push the tag: git push --tags
  3. Wait for the GitHub action to run GoReleaser and create the new GitHub release

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package connector manages the creating and deletion of service bindings to MS SQL Server
Package connector manages the creating and deletion of service bindings to MS SQL Server
Package csbsqlserver is a niche Terraform provider for Microsoft SQL Server
Package csbsqlserver is a niche Terraform provider for Microsoft SQL Server
Package testhelpers contains some helpers shared between different test packages
Package testhelpers contains some helpers shared between different test packages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL