Skip to content

Commit 49b61b7

Browse files
committed
Updated azurerm_cosmosdb_account attribute name
1 parent 2235091 commit 49b61b7

File tree

2 files changed

+3
-8
lines changed
  • quickstart
    • 101-cosmos-db-azure-container-instance
    • 201-k8s-cluster-with-tf-and-aks

2 files changed

+3
-8
lines changed

quickstart/101-cosmos-db-azure-container-instance/aci.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
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-
71
resource "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"

quickstart/201-k8s-cluster-with-tf-and-aks/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ resource "random_id" "log_analytics_workspace_name_suffix" {
1414

1515
resource "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

0 commit comments

Comments
 (0)