Skip to content

Commit

Permalink
IaC: Add Storage Container named 'docs' to all templates
Browse files Browse the repository at this point in the history
  • Loading branch information
crpietschmann committed Mar 15, 2024
1 parent d21e7a5 commit 81f8137
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions IaC/Bicep/v2/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ param azureSearchSku string = 'standard'

param azureStorageSku string = 'Standard_LRS'

param azureStorageBlobContainerName string = 'docs'

var resourceTags = {
project: 'https://github.com/build5nines/AIChatUI'
Expand Down Expand Up @@ -84,3 +85,13 @@ resource storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
accessTier: 'Hot'
}
}

resource storageblobservice 'Microsoft.Storage/storageAccounts/blobServices@2023-01-01' = {
parent: storage
name: 'default'
}

resource storagecontainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2023-01-01' = {
name: azureStorageBlobContainerName
parent: storageblobservice
}
6 changes: 6 additions & 0 deletions IaC/Terraform/v2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ locals {
azure_storage_sku = "Standard"
azure_storage_replication_type = "LRS"

azure_storage_blob_container_name = "docs"

resourceTags = {
project = "https://github.com/build5nines/AIChatUI"
}
Expand Down Expand Up @@ -61,3 +63,7 @@ resource azurerm_storage_account azurestorage {
enable_https_traffic_only = true
tags = local.resourceTags
}
resource azurerm_storage_container azurestoragecontainer {
name = azure_storage_blob_container_name
storage_account_name = azurerm_storage_account.azurestorage.name
}

0 comments on commit 81f8137

Please sign in to comment.