Skip to content

Latest commit

 

History

History
218 lines (172 loc) · 4.31 KB

File metadata and controls

218 lines (172 loc) · 4.31 KB

azurerm_redis_cache

back

Index

Terraform

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

top

Example Usage

module "azurerm_redis_cache" {
  source = "./modules/azurerm/d/azurerm_redis_cache"

  # name - (required) is a type of string
  name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
  # zones - (optional) is a type of list of string
  zones = []

  timeouts = [{
    read = null
  }]
}

top

Variables

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

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

variable "zones" {
  description = "(optional)"
  type        = list(string)
  default     = null
}

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

top

Datasource

data "azurerm_redis_cache" "this" {
  # 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
  # zones - (optional) is a type of list of string
  zones = var.zones

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

}

top

Outputs

output "capacity" {
  description = "returns a number"
  value       = data.azurerm_redis_cache.this.capacity
}

output "enable_non_ssl_port" {
  description = "returns a bool"
  value       = data.azurerm_redis_cache.this.enable_non_ssl_port
}

output "family" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.family
}

output "hostname" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.hostname
}

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

output "location" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.location
}

output "minimum_tls_version" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.minimum_tls_version
}

output "patch_schedule" {
  description = "returns a list of object"
  value       = data.azurerm_redis_cache.this.patch_schedule
}

output "port" {
  description = "returns a number"
  value       = data.azurerm_redis_cache.this.port
}

output "primary_access_key" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.primary_access_key
  sensitive   = true
}

output "primary_connection_string" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.primary_connection_string
  sensitive   = true
}

output "private_static_ip_address" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.private_static_ip_address
}

output "redis_configuration" {
  description = "returns a list of object"
  value       = data.azurerm_redis_cache.this.redis_configuration
}

output "secondary_access_key" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.secondary_access_key
  sensitive   = true
}

output "secondary_connection_string" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.secondary_connection_string
  sensitive   = true
}

output "shard_count" {
  description = "returns a number"
  value       = data.azurerm_redis_cache.this.shard_count
}

output "sku_name" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.sku_name
}

output "ssl_port" {
  description = "returns a number"
  value       = data.azurerm_redis_cache.this.ssl_port
}

output "subnet_id" {
  description = "returns a string"
  value       = data.azurerm_redis_cache.this.subnet_id
}

output "tags" {
  description = "returns a map of string"
  value       = data.azurerm_redis_cache.this.tags
}

output "zones" {
  description = "returns a list of string"
  value       = data.azurerm_redis_cache.this.zones
}

output "this" {
  value = azurerm_redis_cache.this
}

top