Skip to content

Latest commit

 

History

History
134 lines (107 loc) · 2.4 KB

File metadata and controls

134 lines (107 loc) · 2.4 KB

azurerm_storage_encryption_scope

back

Index

Terraform

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

top

Example Usage

module "azurerm_storage_encryption_scope" {
  source = null

  # key_vault_key_id - (optional) is a type of string
  key_vault_key_id = null
  # name - (required) is a type of string
  name = null
  # source - (required) is a type of string
  # storage_account_id - (required) is a type of string
  storage_account_id = null

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

top

Variables

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

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

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

variable "storage_account_id" {
  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_storage_encryption_scope" "this" {
  # key_vault_key_id - (optional) is a type of string
  key_vault_key_id = var.key_vault_key_id
  # name - (required) is a type of string
  name = var.name
  # source - (required) is a type of string
  source = var.source
  # storage_account_id - (required) is a type of string
  storage_account_id = var.storage_account_id

  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_storage_encryption_scope.this.id
}

output "this" {
  value = azurerm_storage_encryption_scope.this
}

top