From 7afaf611509e274951252fe33343a682e6b54aa5 Mon Sep 17 00:00:00 2001 From: lonegunmanb Date: Sat, 18 Feb 2023 13:09:57 +0800 Subject: [PATCH] revert deletion of aci.tf to fix broken doc build pipeline (#166) Co-authored-by: zjhe --- .../aci.tf | 27 ++++++++++++++++++ .../main.tf | 28 ------------------- 2 files changed, 27 insertions(+), 28 deletions(-) create mode 100644 quickstart/101-cosmos-db-azure-container-instance/aci.tf diff --git a/quickstart/101-cosmos-db-azure-container-instance/aci.tf b/quickstart/101-cosmos-db-azure-container-instance/aci.tf new file mode 100644 index 00000000..cdf9accd --- /dev/null +++ b/quickstart/101-cosmos-db-azure-container-instance/aci.tf @@ -0,0 +1,27 @@ +resource "azurerm_container_group" "main" { + name = "${random_pet.rg_name.id}-vote-aci" + location = azurerm_resource_group.rg.location + resource_group_name = azurerm_resource_group.rg.name + ip_address_type = "Public" + dns_name_label = "vote-aci-${random_integer.ri.result}" + os_type = "Linux" + + container { + name = "vote-aci" + image = "mcr.microsoft.com/azuredocs/azure-vote-front:cosmosdb" + cpu = "0.5" + memory = "1.5" + ports { + port = 80 + protocol = "TCP" + } + + secure_environment_variables = { + "COSMOS_DB_ENDPOINT" = azurerm_cosmosdb_account.vote_cosmos_db.endpoint + "COSMOS_DB_MASTERKEY" = azurerm_cosmosdb_account.vote_cosmos_db.primary_key + "TITLE" = "Azure Voting App" + "VOTE1VALUE" = "Cats" + "VOTE2VALUE" = "Dogs" + } + } +} \ No newline at end of file diff --git a/quickstart/101-cosmos-db-azure-container-instance/main.tf b/quickstart/101-cosmos-db-azure-container-instance/main.tf index 66a3b90c..3112f295 100644 --- a/quickstart/101-cosmos-db-azure-container-instance/main.tf +++ b/quickstart/101-cosmos-db-azure-container-instance/main.tf @@ -22,34 +22,6 @@ resource "azurerm_cosmosdb_account" "vote_cosmos_db" { } } -resource "azurerm_container_group" "main" { - name = "${random_pet.rg_name.id}-vote-aci" - location = azurerm_resource_group.rg.location - resource_group_name = azurerm_resource_group.rg.name - ip_address_type = "Public" - dns_name_label = "vote-aci-${random_integer.ri.result}" - os_type = "Linux" - - container { - name = "vote-aci" - image = "mcr.microsoft.com/azuredocs/azure-vote-front:cosmosdb" - cpu = "0.5" - memory = "1.5" - ports { - port = 80 - protocol = "TCP" - } - - secure_environment_variables = { - "COSMOS_DB_ENDPOINT" = azurerm_cosmosdb_account.vote_cosmos_db.endpoint - "COSMOS_DB_MASTERKEY" = azurerm_cosmosdb_account.vote_cosmos_db.primary_key - "TITLE" = "Azure Voting App" - "VOTE1VALUE" = "Cats" - "VOTE2VALUE" = "Dogs" - } - } -} - resource "random_integer" "ri" { min = 10000 max = 99999