Skip to content

Terraform Provider for Azure Databases to open and close Firewall IPs during execution

Notifications You must be signed in to change notification settings

brunooliveiramac/terraform-provider-firewalldbs

Repository files navigation

Firewalldbs Provider

The Firewaldbs providers is intended to interact with all database firewall from Azure. This is needed to add an ip in order to be able to create users and granting permissions using other custom provider.

Example Usage

Do not keep your authentication password in HCL for production environments, use Terraform environment variables.

provider "firewalldbs" {
    client_id         = ""
    client_secret     = ""
    subscription_id   = ""
    tenant_id         = ""
    agent_ip          = "192.168.1.1"
}

resource "firewalldbs_open" "default" {
  server_name         = "brunoxy-ix4-north-eu-sandbox"
  resource_group_name = "bees-eu-sbx-brunoxy"
  agent_ip            = "192.168.1.1"
}

resource "firewalldbs_close" "default" {
  server_name         = "brunoxy-ix4-north-eu-sandbox"
  resource_group_name = "bees-eu-sbx-brunoxy"
  agent_ip            = "192.168.1.1"

  depends_on = [
    firewalldbs_open.default
  ]
}

About

Terraform Provider for Azure Databases to open and close Firewall IPs during execution

Resources

Stars

Watchers

Forks

Packages

No packages published