Skip to content

Commit

Permalink
Update readme and terraform scripts (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
backwind1233 authored Jan 20, 2022
1 parent fb40306 commit a1de79d
Show file tree
Hide file tree
Showing 36 changed files with 130 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -135,5 +134,5 @@ The terraform destroy command terminates resources managed by your terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ output "object_id" {
description = "Current user's object_id."
}

output "resource_group_name" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}

Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -133,5 +132,5 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ output "cosmos_database_name" {
value = var.cosmos_database_name
}

output "resource_group_name" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}


Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -151,7 +150,7 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ output "AZURE_STORAGE_ACCOUNT_NAME" {
output "AZURE_STORAGE_CONTAINER_NAME" {
value = azurerm_storage_container.storage_container.name
description = "The container name created in storage account."
}
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -143,7 +142,7 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```

## Troubleshooting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ output "AZURE_EVENTHUBS_CONNECTION_STRING" {
output "EVENTHUBS_KAFKA" {
value = azurerm_eventhub.eventhubs.name
description = "The name of created event hubs."
}

}
output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -154,5 +153,5 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ output "AZURE_EVENTHUB_NAME" {
output "AZURE_EVENTHUB_CONSUMER_GROUP" {
value = "$Default"
description = "The value of default consumer group."
}
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -156,7 +155,7 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ output "AZURE_EVENTHUB_NAME_02" {
output "AZURE_EVENTHUB_CONSUMER_GROUP_02" {
value = "$Default"
description = "The value of default consumer group 02."
}
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -135,5 +134,5 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ output "KEYVAULT_URI_02" {
value = azurerm_key_vault.kv_account_02.vault_uri
description = "The key vault uri 02."
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -127,5 +126,5 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ output "KEYVAULT_URI" {
value = azurerm_key_vault.kv_account.vault_uri
description = "The key vault uri."
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -138,7 +137,7 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ output "AZURE_SERVICEBUS_NAMESPACE_02" {
value = azurerm_servicebus_namespace.servicebus_namespace_02.name
description = "The name of servicebus_02 namespace."
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -148,7 +147,7 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ output "SERVICEBUS_NAMESPACE" {
value = azurerm_servicebus_namespace.servicebus_namespace.name
description = "The name of servicebus namespace."
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -138,7 +137,7 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.
```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ output "PRICING_TIER" {
value = var.pricing_tier
description = "The pricing tier of Service Bus."
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -136,7 +135,7 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.
```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ output "PRICING_TIER" {
value = var.pricing_tier
description = "The pricing tier of Service Bus."
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -156,5 +155,5 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ output "AZURE_SERVICEBUS_QUEUE_NAME" {
value = azurerm_servicebus_queue.servicebus_namespace_02_queue.name
description = "The queue name in service bus namespace 02."
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ After login Azure CLI with your account, now you can use the terraform script to
terraform -chdir=./terraform init

# Apply your Terraform Configuration
# Type `yes` at the confirmation prompt to proceed.
terraform -chdir=./terraform apply
terraform -chdir=./terraform apply -auto-approve

```

Expand Down Expand Up @@ -149,5 +148,5 @@ The terraform destroy command terminates resources managed by your Terraform pro
To destroy the resources you created.

```shell
terraform -chdir=./terraform destroy
terraform -chdir=./terraform destroy -auto-approve
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ output "AZURE_SERVICEBUS_QUEUE_NAME" {
value = azurerm_servicebus_queue.queue.name
description = "The name of created queue in the service bus namespace."
}

output "RESOURCE_GROUP_NAME" {
value = azurerm_resource_group.main.name
description = "The resource group name."
}
Loading

0 comments on commit a1de79d

Please sign in to comment.