From 7e2fc1508b364e25de4fbffb917ae3d151fb501a Mon Sep 17 00:00:00 2001 From: Kevin Lefevre Date: Mon, 2 Dec 2019 10:51:43 +0100 Subject: [PATCH] feat: remove providers BREAKING CHANGES: remove providers.tf. This is best pratice and allow for further customization without touching the core modules Signed-off-by: Kevin Lefevre --- terraform/modules/eks-addons/providers.tf | 37 ------------------- terraform/modules/eks-namespaces/providers.tf | 11 ------ 2 files changed, 48 deletions(-) delete mode 100644 terraform/modules/eks-addons/providers.tf delete mode 100644 terraform/modules/eks-namespaces/providers.tf diff --git a/terraform/modules/eks-addons/providers.tf b/terraform/modules/eks-addons/providers.tf deleted file mode 100644 index 61dac0e5..00000000 --- a/terraform/modules/eks-addons/providers.tf +++ /dev/null @@ -1,37 +0,0 @@ -# -# Provider Configuration -# -provider "aws" { - region = var.aws["region"] -} - -terraform { - backend "s3" { - } -} - -# Using these data sources allows the configuration to be -# generic for any region. -data "aws_region" "current" { -} - -data "aws_availability_zones" "available" { -} - -data "aws_caller_identity" "current" { -} - -provider "helm" { - install_tiller = true - service_account = "tiller" - tiller_image = "gcr.io/kubernetes-helm/tiller:v2.16.1" - automount_service_account_token = true - - kubernetes { - config_path = var.eks["kubeconfig_path"] - } -} - -provider "kubernetes" { - config_path = var.eks["kubeconfig_path"] -} diff --git a/terraform/modules/eks-namespaces/providers.tf b/terraform/modules/eks-namespaces/providers.tf deleted file mode 100644 index 2a663cda..00000000 --- a/terraform/modules/eks-namespaces/providers.tf +++ /dev/null @@ -1,11 +0,0 @@ -# -# Provider Configuration -# -terraform { - backend "s3" { - } -} - -provider "kubernetes" { - config_path = var.eks["kubeconfig_path"] -}