-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovider.tf
More file actions
45 lines (39 loc) · 1010 Bytes
/
provider.tf
File metadata and controls
45 lines (39 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
###### root/provider.tf ######
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.15.0"
}
random = {
source = "hashicorp/random"
version = "3.1.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.0.1"
}
}
}
# AWS Provider Configuration
provider "aws" {
region = "ap-south-1"
}
# Fetch EKS Cluster Information
# data "aws_eks_cluster" "cluster" {
# name = module.eks.cluster_name
# }
# data "aws_eks_cluster_auth" "cluster" {
# name = module.eks.cluster_name
# }
# # Kubernetes Provider Configuration
# provider "kubernetes" {
# host = data.aws_eks_cluster.cluster.endpoint
# cluster_ca_certificate = base64decode(module.eks.eks_cluster_certificate_authority_data)
# token = data.aws_eks_cluster_auth.cluster.token
# }
# # Generate a Random Suffix for Unique Naming
# resource "random_string" "suffix" {
# length = 5
# special = false
# }