Skip to content

Commit

Permalink
Added terraform to create new storage account and metadata container
Browse files Browse the repository at this point in the history
  • Loading branch information
basiliskus committed Dec 5, 2023
1 parent 17ae3f7 commit 71da245
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion operations/template/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "azurerm_linux_web_app" "api" {
ENV = var.environment
REPORT_STREAM_URL_PREFIX = "https://${local.rs_domain_prefix}prime.cdc.gov"
KEY_VAULT_NAME = azurerm_key_vault.key_storage.name

METADATA_CONTAINER_NAME = azurerm_storage_container.metadata.name
}

identity {
Expand Down
15 changes: 15 additions & 0 deletions operations/template/storage.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
resource "azurerm_storage_account" "storage" {
name = "cdcti${var.environment}"
resource_group_name = data.azurerm_resource_group.group.name
location = data.azurerm_resource_group.group.location
account_tier = "Standard"
account_replication_type = "GRS"
account_kind = "StorageV2"
allow_nested_items_to_be_public = false
}

resource "azurerm_storage_container" "metadata" {
name = "metadata"
storage_account_name = azurerm_storage_account.storage.name
container_access_type = "private"
}

0 comments on commit 71da245

Please sign in to comment.