From aa6e4b906701d7f5261998ce57e8fa85a0d54615 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Mon, 11 Dec 2023 22:42:02 +0100 Subject: [PATCH] Drop storage block: OpenAI does not support it --- README.md | 1 - main.tf | 7 ------- variables.tf | 15 --------------- 3 files changed, 23 deletions(-) diff --git a/README.md b/README.md index 5fcb643..34357b3 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,6 @@ No modules. | [public\_network\_access\_enabled](#input\_public\_network\_access\_enabled) | Whether public network access is allowed for the Cognitive Account. Defaults to `false`. | `bool` | `false` | no | | [resource\_group\_name](#input\_resource\_group\_name) | Name of the azure resource group to use. The resource group must exist. | `string` | n/a | yes | | [sku\_name](#input\_sku\_name) | Specifies the SKU Name for this Cognitive Service Account. Possible values are `F0`, `F1`, `S0`, `S`, `S1`, `S2`, `S3`, `S4`, `S5`, `S6`, `P0`, `P1`, `P2`, `E0` and `DC0`. Default to `S0`. | `string` | `"S0"` | no | -| [storage](#input\_storage) | type = list(object({
storage\_account\_id = (Required) Full resource id of a Microsoft.Storage resource.
identity\_client\_id = (Optional) The client ID of the managed identity associated with the storage resource.
})) |
list(object({
storage_account_id = string
identity_client_id = optional(string)
}))
| `[]` | no | | [tags](#input\_tags) | (Optional) A mapping of tags to assign to the resource. | `map(string)` | `{}` | no | | [tracing\_tags\_enabled](#input\_tracing\_tags\_enabled) | Whether enable tracing tags that generated by BridgeCrew Yor. | `bool` | `false` | no | | [tracing\_tags\_prefix](#input\_tracing\_tags\_prefix) | Default prefix for generated tracing tags | `string` | `"avm_"` | no | diff --git a/main.tf b/main.tf index e1bdd21..5a0a575 100644 --- a/main.tf +++ b/main.tf @@ -64,13 +64,6 @@ resource "azurerm_cognitive_account" "this" { } } } - dynamic "storage" { - for_each = var.storage - content { - storage_account_id = storage.value.storage_account_id - identity_client_id = storage.value.identity_client_id - } - } } resource "azurerm_cognitive_deployment" "this" { diff --git a/variables.tf b/variables.tf index c3e8756..7b8426e 100644 --- a/variables.tf +++ b/variables.tf @@ -258,21 +258,6 @@ variable "sku_name" { description = "Specifies the SKU Name for this Cognitive Service Account. Possible values are `F0`, `F1`, `S0`, `S`, `S1`, `S2`, `S3`, `S4`, `S5`, `S6`, `P0`, `P1`, `P2`, `E0` and `DC0`. Default to `S0`." } -variable "storage" { - type = list(object({ - storage_account_id = string - identity_client_id = optional(string) - })) - default = [] - description = <<-DESCRIPTION - type = list(object({ - storage_account_id = (Required) Full resource id of a Microsoft.Storage resource. - identity_client_id = (Optional) The client ID of the managed identity associated with the storage resource. - })) - DESCRIPTION - nullable = false -} - variable "tags" { type = map(string) default = {}