mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add initial working Terraform config for Azure
This commit is contained in:
parent
ae005bfa31
commit
218c1ca4b4
15
azure/starter-vm/terraform/provider.tf
Normal file
15
azure/starter-vm/terraform/provider.tf
Normal file
@ -0,0 +1,15 @@
|
||||
# Configure the Microsoft Azure Provider
|
||||
|
||||
# Why define these variables here? This is why:
|
||||
# https://github.com/hashicorp/terraform/issues/7894#issuecomment-259758331
|
||||
variable "subscription_id" {}
|
||||
variable "client_id" {}
|
||||
variable "client_secret" {}
|
||||
variable "tenant_id" {}
|
||||
|
||||
provider "azurerm" {
|
||||
subscription_id = "${var.subscription_id}"
|
||||
client_id = "${var.client_id}"
|
||||
client_secret = "${var.client_secret}"
|
||||
tenant_id = "${var.tenant_id}"
|
||||
}
|
||||
5
azure/starter-vm/terraform/resource-group.tf
Normal file
5
azure/starter-vm/terraform/resource-group.tf
Normal file
@ -0,0 +1,5 @@
|
||||
# Create a resource group
|
||||
resource "azurerm_resource_group" "bdbNodeRG" {
|
||||
name = "bdbNodeRG"
|
||||
location = "${var.location}"
|
||||
}
|
||||
8
azure/starter-vm/terraform/variables.tf
Normal file
8
azure/starter-vm/terraform/variables.tf
Normal file
@ -0,0 +1,8 @@
|
||||
# Use this file for Terraform variables that:
|
||||
# 1) you don't mind sharing with the world on GitHub (if default provided) or
|
||||
# 2) you want Terraform to ask the user for at runtime (if no default provided)
|
||||
# Secret variables should be put in secret.tfvars or similar.
|
||||
|
||||
variable "location" {
|
||||
default = "westeurope"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user