Skip to content

Commit

Permalink
make sure all samples using same tags
Browse files Browse the repository at this point in the history
  • Loading branch information
fangjian0423 committed Dec 5, 2022
1 parent ee1a82c commit 4c05903
Show file tree
Hide file tree
Showing 18 changed files with 64 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ resource "azurerm_resource_group" "main" {
location = var.location

tags = {
"spring-cloud-azure-sample" = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down Expand Up @@ -57,7 +59,9 @@ resource "azurerm_cosmosdb_account" "application" {
}

tags = {
"spring-cloud-azure-sample" = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ resource "azurerm_resource_group" "main" {
location = var.location

tags = {
"spring-cloud-azure-sample" = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down Expand Up @@ -57,7 +59,9 @@ resource "azurerm_cosmosdb_account" "application" {
}

tags = {
"spring-cloud-azure-sample" = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ resource "azurerm_eventhub_namespace" "eventhubs_namespace" {
capacity = 1

tags = {
terraform_azure_sample = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ resource "azurerm_eventhub_namespace" "eventhubs_namespace" {
capacity = 1

tags = {
terraform_azure_sample = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ resource "azurerm_eventhub_namespace" "eventhubs_namespace" {
capacity = 1

tags = {
terraform_azure_sample = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ resource "azurerm_eventhub_namespace" "eventhubs_namespace" {
capacity = 1

tags = {
terraform_azure_sample = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ resource "azurerm_eventhub_namespace" "eventhubs_namespace_01" {
capacity = 1

tags = {
terraform_azure_sample = var.sample_tag_value
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}

Expand Down Expand Up @@ -86,7 +88,9 @@ resource "azurerm_eventhub_namespace" "eventhubs_namespace_02" {
capacity = 1

tags = {
terraform_azure_sample = var.sample_tag_value
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ resource "azurerm_key_vault" "kv_account_01" {
}

tags = {
"terraform" = "true"
"spring-cloud-azure-sample" = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down Expand Up @@ -121,8 +122,9 @@ resource "azurerm_key_vault" "kv_account_02" {
}

tags = {
"terraform" = "true"
"spring-cloud-azure-sample" = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ resource "azurerm_key_vault" "kv_account" {

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace_01" {
zone_redundant = false

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down Expand Up @@ -84,6 +86,8 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace_02" {
zone_redundant = false

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace" {
zone_redundant = false

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace" {
zone_redundant = false

tags = {
"spring-cloud-azure-sample" = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace" {
zone_redundant = false

tags = {
"spring-cloud-azure-sample" = var.sample_tag_value
terraform = "true"
application-name = var.application_name
spring-cloud-azure-sample = var.sample_tag_value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace_01" {
zone_redundant = false

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down Expand Up @@ -94,6 +96,8 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace_02" {
zone_redundant = false

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace" {
zone_redundant = false

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace" {
zone_redundant = false

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ resource "azurerm_servicebus_namespace" "servicebus_namespace" {
zone_redundant = false

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down
5 changes: 5 additions & 0 deletions spring-petclinic-microservices/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ resource "azurerm_resource_group" "main" {
location = var.location

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down Expand Up @@ -58,6 +60,8 @@ resource "azurerm_cosmosdb_account" "application" {
}

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down Expand Up @@ -152,6 +156,7 @@ resource "azurerm_key_vault" "kv_account" {

tags = {
"terraform" = "true"
"application-name" = var.application_name
"spring-cloud-azure-sample" = var.sample_tag_value
}
}
Expand Down

0 comments on commit 4c05903

Please sign in to comment.