Skip to content

Instantly share code, notes, and snippets.

@cdennig
Created December 14, 2019 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdennig/bf6bc89e535e3e555bdd70e0493d0efa to your computer and use it in GitHub Desktop.
Save cdennig/bf6bc89e535e3e555bdd70e0493d0efa to your computer and use it in GitHub Desktop.
provider "azurerm" {
# whilst the `version` attribute is optional, we recommend pinning to a given version of the Provider
version = "=1.38.0"
}
provider "azuread" {
version = "~> 0.3"
}
terraform {
backend "azurerm" {
resource_group_name = "tf-rg"
storage_account_name = "tfstatestac"
container_name = "tfstate"
key = "org.terraform.tfstate"
}
}
data "azurerm_subscription" "current" {}
# Resource Group creation
resource "azurerm_resource_group" "k8s" {
name = "${var.rg-name}"
location = "${var.location}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment