Skip to content

Terraform provider for managing Azure SQL/MSSQL users and permissions

License

Notifications You must be signed in to change notification settings

browol/terraform-provider-azuresql

 
 

Repository files navigation

terraform-provider-azuresql

Provider for managing MSSQL Server users and permissions. Documentation can be found in /docs or the registry.

Using an unofficial terraform provider is pretty scary and it therefore needs to be really easy to review and fork. That leaves us with the following focus points:

  • keep it as simple as possible
  • keep dependencies to a minimum

Maturity

This provider currently only has acceptance tests against a local docker based mssql instance and has received a little bit of manual testing against Azure SQL Server and Azure AD. It's my first time creating a terraform provider and I'm still a bit of a Golang newbie. Do not use this unless you can first test all your changes in an environment that is ok to break.

Dependencies

Other than terraform boilerplate/plumbing this provider only utilizes an mssql driver, specifically github.com/denisenkom/go-mssqldb, which is also mentioned in Microsoft's documentation for working with mssql using golang.

Development

This plugin is based on Terraform Plugin Framework and the documentation for that should therefore be a good source of information (https://www.terraform.io/plugin/framework).

command description
nix-shell --pure open shell with all prerequisites installed
make test build, install and execute tests

Check makefile for more options.

Known issues

  • Need to specify resources with implicit dependencies for them to be created and deleted in the correct order
  • aad_user is untested (feature is currently public preview)

License

Based on terraform-provider-scaffolding-framework and therefore also has the same license.

About

Terraform provider for managing Azure SQL/MSSQL users and permissions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.9%
  • Makefile 3.1%
  • Other 1.0%