Skip to content

Commit

Permalink
Update to AzureRM 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sesispla committed Feb 28, 2020
1 parent 1f840e8 commit 68c9981
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions providers.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
locals {
kube_config = azurerm_kubernetes_cluster.cloudcommons.kube_config.0
provider "azurerm" {
version = "~> 2.0"
features {}
}

provider "kubernetes" {
host = local.kube_config.host
client_certificate = base64decode(local.kube_config.client_certificate)
client_key = base64decode(local.kube_config.client_key)
cluster_ca_certificate = base64decode(local.kube_config.cluster_ca_certificate)
version = "= 1.10"
# load_config_file = false
host = azurerm_kubernetes_cluster.cloudcommons.kube_config.0.host
client_certificate = base64decode(azurerm_kubernetes_cluster.cloudcommons.kube_config.0.client_certificate)
client_key = base64decode(azurerm_kubernetes_cluster.cloudcommons.kube_config.0.client_key)
cluster_ca_certificate = base64decode(azurerm_kubernetes_cluster.cloudcommons.kube_config.0.cluster_ca_certificate)
}
2 changes: 1 addition & 1 deletion vnet.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "vnet" {
source = "cloudcommons/vnet/azure"
version = "0.1.2"
version = "0.2.0"
name = var.name
enabled = local.vnet_enabled
location = var.location
Expand Down

0 comments on commit 68c9981

Please sign in to comment.