Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Working on EKS module
dshafer committed Aug 1, 2018

Unverified

No user is associated with the committer email.
1 parent 8a7a80c commit 7f02560
Showing 4 changed files with 22 additions and 17 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
@@ -4,8 +4,6 @@

locals {
config_map_aws_auth = <<CONFIGMAPAWSAUTH
apiVersion: v1
kind: ConfigMap
metadata:
@@ -49,6 +47,8 @@ users:
- "token"
- "-i"
- "${var.cluster_name}"
- "-r"
- "${var.role_arn}"
KUBECONFIG
}

3 changes: 2 additions & 1 deletion providers.tf
@@ -16,4 +16,5 @@ data "aws_availability_zones" "available" {}
# icanhazip.com to determine local workstation external IP
# to open EC2 Security Group access to the Kubernetes cluster.
# See workstation-external-ip.tf for additional information.
provider "http" {}
#provider "http" {}

17 changes: 11 additions & 6 deletions variables.tf
@@ -2,12 +2,6 @@
# Variables Configuration
#

variable "cluster_name" {
type = "string"
default = "cluster"
description = "Kubernetes cluster name"
}

variable "account_id" {
type = "string"
description = "Account ID containing IAM users to be mapped into the cluster"
@@ -18,3 +12,14 @@ variable "availability_zones" {
default = ["us-east-1a", "us-east-1b"]
description = "List of 2 availability zones in which to create the worker nodes"
}

variable "cluster_name" {
type = "string"
default = "cluster"
description = "Kubernetes cluster name"
}

variable "role_arn" {
type = "string"
description = "IAM role to be used when accessing the cluster"
}
15 changes: 7 additions & 8 deletions workstation-external-ip.tf
@@ -7,12 +7,11 @@
# configure inbound EC2 Security Group access
# to the Kubernetes cluster.
#

data "http" "workstation-external-ip" {
url = "http://ipv4.icanhazip.com"
}

#data "http" "workstation-external-ip" {
# url = "http://ipv4.icanhazip.com"
#}
# Override with variable or hardcoded value if necessary
locals {
workstation-external-cidr = "${chomp(data.http.workstation-external-ip.body)}/32"
}
#locals {
# workstation-external-cidr = "${chomp(data.http.workstation-external-ip.body)}/32"
#}

0 comments on commit 7f02560

Please sign in to comment.