Skip to content

Latest commit

 

History

History
143 lines (115 loc) · 2.71 KB

azurerm_mariadb_firewall_rule.md

File metadata and controls

143 lines (115 loc) · 2.71 KB

azurerm_mariadb_firewall_rule

back

Index

Terraform

terraform {
  required_providers {
    azurerm = ">= 2.54.0"
  }
}

top

Example Usage

module "azurerm_mariadb_firewall_rule" {
  source = "./modules/azurerm/r/azurerm_mariadb_firewall_rule"

  # end_ip_address - (required) is a type of string
  end_ip_address = null
  # name - (required) is a type of string
  name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
  # server_name - (required) is a type of string
  server_name = null
  # start_ip_address - (required) is a type of string
  start_ip_address = null

  timeouts = [{
    create = null
    delete = null
    read   = null
    update = null
  }]
}

top

Variables

variable "end_ip_address" {
  description = "(required)"
  type        = string
}

variable "name" {
  description = "(required)"
  type        = string
}

variable "resource_group_name" {
  description = "(required)"
  type        = string
}

variable "server_name" {
  description = "(required)"
  type        = string
}

variable "start_ip_address" {
  description = "(required)"
  type        = string
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
      read   = string
      update = string
    }
  ))
  default = []
}

top

Resource

resource "azurerm_mariadb_firewall_rule" "this" {
  # end_ip_address - (required) is a type of string
  end_ip_address = var.end_ip_address
  # name - (required) is a type of string
  name = var.name
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name
  # server_name - (required) is a type of string
  server_name = var.server_name
  # start_ip_address - (required) is a type of string
  start_ip_address = var.start_ip_address

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
      # read - (optional) is a type of string
      read = timeouts.value["read"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

output "id" {
  description = "returns a string"
  value       = azurerm_mariadb_firewall_rule.this.id
}

output "this" {
  value = azurerm_mariadb_firewall_rule.this
}

top