File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
101-cosmos-db-azure-container-instance
201-k8s-cluster-with-tf-and-aks Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1- # This code sets two environment variables: COSMOS_DB_ENDPOINT and COSMOS_DB_MASTERKEY.
2- # These variables hold the location and key for accessing the database.
3- # The values for these variables are obtained from the database instance created in main.tf
4- # This process is known as interpolation.
5- # To learn more about Terraform interpolation, see https://www.terraform.io/language/v1.1.x/configuration-0-11/interpolation.
6-
71resource "azurerm_container_group" "vote_aci" {
82 name = " vote_aci"
93 location = azurerm_resource_group. rg . location
@@ -24,7 +18,7 @@ resource "azurerm_container_group" "vote_aci" {
2418
2519 secure_environment_variables = {
2620 " COSMOS_DB_ENDPOINT" = azurerm_cosmosdb_account.vote_cosmos_db.endpoint
27- " COSMOS_DB_MASTERKEY" = azurerm_cosmosdb_account.vote_cosmos_db.primary_master_key
21+ " COSMOS_DB_MASTERKEY" = azurerm_cosmosdb_account.vote_cosmos_db.primary_key
2822 " TITLE" = " Azure Voting App"
2923 " VOTE1VALUE" = " Cats"
3024 " VOTE2VALUE" = " Dogs"
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ resource "random_id" "log_analytics_workspace_name_suffix" {
1414
1515resource "azurerm_log_analytics_workspace" "test" {
1616 location = var. log_analytics_workspace_location
17- # The WorkSpace name has to be unique across the whole of azure, not just the current subscription/tenant.
17+ # The WorkSpace name has to be unique across the whole of azure;
18+ # not just the current subscription/tenant.
1819 name = " ${ var . log_analytics_workspace_name } -${ random_id . log_analytics_workspace_name_suffix . dec } "
1920 resource_group_name = azurerm_resource_group. rg . name
2021 sku = var. log_analytics_workspace_sku
You can’t perform that action at this time.
0 commit comments