Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Working on EKS module
  • Loading branch information
dshafer committed Aug 1, 2018
1 parent 8a7a80c commit 7f02560
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 17 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
Expand Up @@ -4,8 +4,6 @@

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

Expand Down
3 changes: 2 additions & 1 deletion providers.tf
Expand Up @@ -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
Expand Up @@ -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"
Expand All @@ -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
Expand Up @@ -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.