Skip to content

Commit bc84805

Browse files
Merge pull request #63 from terraform-aws-modules/feature/release-1.3.0
release 1.3.0
2 parents 75f6f1e + 69d7a3c commit bc84805

File tree

9 files changed

+28
-24
lines changed

9 files changed

+28
-24
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
.kitchen.local.yml
88
Gemfile.lock
99
terraform.tfstate.d/
10-
kubeconfig
11-
config-map-aws-auth.yaml
1210
eks-admin-cluster-role-binding.yaml
1311
eks-admin-service-account.yaml
1412
.idea/
13+
config-map-aws-auth*.yaml
14+
kubeconfig_*

CHANGELOG.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,27 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
66
project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## [[v1.4.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.3.0...v1.4.0)] - 2018-07-12]
8+
## [[v1.4.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.3.0...HEAD)] - 2018-07-??]
99

1010
### Added
1111

12-
- New variables `map_accounts`, `map_roles` and `map_users` in order to manage additional entries in the `aws-auth` configmap. (by @max-rocket-internet)
12+
- A tiny but mighty feature. (you're on fire, @me 🔥)
13+
14+
### Changed
1315

14-
## [[v1.3.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.2.0...v1.3.0)] - 2018-07-??]
16+
- A subtle but thoughtful change. (Boomshakalaka, @self 🏀)
17+
18+
## [[v1.3.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.2.0...v1.3.0)] - 2018-07-11]
1519

1620
### Added
1721

22+
- New variables `map_accounts`, `map_roles` and `map_users` in order to manage additional entries in the `aws-auth` configmap. (by @max-rocket-internet)
1823
- kubelet_node_labels worker group option allows setting --node-labels= in kubelet. (Hat-tip, @bshelton229 👒)
1924
- `worker_iam_role_arn` added to outputs. Sweet, @hatemosphere 🔥
2025

2126
### Changed
2227

23-
- your excellent change. (Boomshakalaka, @self 🏀)
28+
- Worker subnets able to be specified as a dedicated list per autoscaling group. (up top, @bshelton229 🙏)
2429

2530
## [[v1.2.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.1.0...v1.2.0)] - 2018-07-01]
2631

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Generate them like so:
6363

6464
```bash
6565
go get github.com/segmentio/terraform-docs
66-
terraform-docs md ./ | cat -s | ghead -n -1 > README.md
66+
terraform-docs md ./ | cat -s | tail -r | tail -n +2 | tail -r > README.md
6767
```
6868

6969
## Contributing
@@ -97,10 +97,10 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
9797
| cluster_name | Name of the EKS cluster. Also used as a prefix in names of related resources. | string | - | yes |
9898
| cluster_security_group_id | If provided, the EKS cluster will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the workers and provide API access to your current IP/32. | string | `` | no |
9999
| cluster_version | Kubernetes version to use for the EKS cluster. | string | `1.10` | no |
100-
| config_output_path | Determines where config files are placed if using configure_kubectl_session and you want config files to land outside the current working directory. | string | `./` | no |
101-
| kubeconfig_aws_authenticator_additional_args | Any additional arguments to pass to the authenticator such as the role to assume ["-r", "MyEksRole"] | list | `<list>` | no |
102-
| kubeconfig_aws_authenticator_command | Command to use to to fetch AWS EKS credentials | string | `heptio-authenticator-aws` | no |
103-
| kubeconfig_aws_authenticator_env_variables | Environment variables that should be used when executing the authenticator i.e. { AWS_PROFILE = "eks"} | map | `<map>` | no |
100+
| config_output_path | Determines where config files are placed if using configure_kubectl_session and you want config files to land outside the current working directory. Should end in a forward slash / . | string | `./` | no |
101+
| kubeconfig_aws_authenticator_additional_args | Any additional arguments to pass to the authenticator such as the role to assume. e.g. ["-r", "MyEksRole"]. | list | `<list>` | no |
102+
| kubeconfig_aws_authenticator_command | Command to use to to fetch AWS EKS credentials. | string | `aws-iam-authenticator` | no |
103+
| kubeconfig_aws_authenticator_env_variables | Environment variables that should be used when executing the authenticator. e.g. { AWS_PROFILE = "eks"}. | map | `<map>` | no |
104104
| kubeconfig_name | Override the default name used for items kubeconfig. | string | `` | no |
105105
| manage_aws_auth | Whether to write and apply the aws-auth configmap file. | string | `true` | no |
106106
| map_accounts | Additional AWS account numbers to add to the aws-auth configmap. See examples/eks_test_fixture/variables.tf for example format. | list | `<list>` | no |
@@ -127,7 +127,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
127127
| cluster_version | The Kubernetes server version for the EKS cluster. |
128128
| config_map_aws_auth | A kubernetes configuration to authenticate to this EKS cluster. |
129129
| kubeconfig | kubectl config file contents for this EKS cluster. |
130-
| worker_iam_role_name | IAM role name attached to EKS workers |
131130
| worker_iam_role_arn | IAM role ID attached to EKS workers |
131+
| worker_iam_role_name | IAM role name attached to EKS workers |
132132
| worker_security_group_id | Security group ID attached to the EKS workers. |
133133
| workers_asg_arns | IDs of the autoscaling groups containing workers. |

aws_auth.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
resource "local_file" "config_map_aws_auth" {
22
content = "${data.template_file.config_map_aws_auth.rendered}"
3-
filename = "${var.config_output_path}/config-map-aws-auth_${var.cluster_name}.yaml"
3+
filename = "${var.config_output_path}config-map-aws-auth_${var.cluster_name}.yaml"
44
count = "${var.manage_aws_auth ? 1 : 0}"
55
}
66

77
resource "null_resource" "update_config_map_aws_auth" {
88
provisioner "local-exec" {
9-
command = "kubectl apply -f ${var.config_output_path}/config-map-aws-auth_${var.cluster_name}.yaml --kubeconfig ${var.config_output_path}/kubeconfig_${var.cluster_name}"
9+
command = "kubectl apply -f ${var.config_output_path}config-map-aws-auth_${var.cluster_name}.yaml --kubeconfig ${var.config_output_path}kubeconfig_${var.cluster_name}"
1010
}
1111

1212
triggers {

kubectl.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "local_file" "kubeconfig" {
22
content = "${data.template_file.kubeconfig.rendered}"
3-
filename = "${var.config_output_path}/kubeconfig_${var.cluster_name}"
3+
filename = "${var.config_output_path}kubeconfig_${var.cluster_name}"
44
count = "${var.write_kubeconfig ? 1 : 0}"
55
}

local.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ locals {
88
worker_security_group_id = "${coalesce(join("", aws_security_group.workers.*.id), var.worker_security_group_id)}"
99
workstation_external_cidr = "${chomp(data.http.workstation_external_ip.body)}/32"
1010
workstation_cidr = "${coalesce(var.workstation_cidr, local.workstation_external_cidr)}"
11-
12-
kubeconfig_name = "${var.kubeconfig_name == "" ? "eks_${var.cluster_name}" : var.kubeconfig_name}"
11+
kubeconfig_name = "${var.kubeconfig_name == "" ? "eks_${var.cluster_name}" : var.kubeconfig_name}"
1312

1413
# Mapping from the node type that we selected and the max number of pods that it can run
1514
# Taken from https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/amazon-eks-nodegroup.yaml

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
6565
* ```bash
6666
* go get github.com/segmentio/terraform-docs
67-
* terraform-docs md ./ | cat -s | ghead -n -1 > README.md
67+
* terraform-docs md ./ | cat -s | tail -r | tail -n +2 | tail -r > README.md
6868
* ```
6969
7070
* ## Contributing

variables.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ variable "cluster_security_group_id" {
88
}
99

1010
variable "workstation_cidr" {
11-
description = "Override the default ingress rule that allows communication with the EKS cluster API. If not given, will use current IP/32. "
11+
description = "Override the default ingress rule that allows communication with the EKS cluster API. If not given, will use current IP/32. "
1212
default = ""
1313
}
1414

@@ -18,7 +18,7 @@ variable "cluster_version" {
1818
}
1919

2020
variable "config_output_path" {
21-
description = "Determines where config files are placed if using configure_kubectl_session and you want config files to land outside the current working directory."
21+
description = "Determines where config files are placed if using configure_kubectl_session and you want config files to land outside the current working directory. Should end in a forward slash / ."
2222
default = "./"
2323
}
2424

@@ -106,18 +106,18 @@ variable "worker_sg_ingress_from_port" {
106106
}
107107

108108
variable "kubeconfig_aws_authenticator_command" {
109-
description = "Command to use to to fetch AWS EKS credentials"
109+
description = "Command to use to to fetch AWS EKS credentials."
110110
default = "aws-iam-authenticator"
111111
}
112112

113113
variable "kubeconfig_aws_authenticator_additional_args" {
114-
description = "Any additional arguments to pass to the authenticator such as the role to assume [\"-r\", \"MyEksRole\"]"
114+
description = "Any additional arguments to pass to the authenticator such as the role to assume. e.g. [\"-r\", \"MyEksRole\"]."
115115
type = "list"
116116
default = []
117117
}
118118

119119
variable "kubeconfig_aws_authenticator_env_variables" {
120-
description = "Environment variables that should be used when executing the authenticator i.e. { AWS_PROFILE = \"eks\"}"
120+
description = "Environment variables that should be used when executing the authenticator. e.g. { AWS_PROFILE = \"eks\"}."
121121
type = "map"
122122
default = {}
123123
}

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.2.0
1+
v1.3.0

0 commit comments

Comments
 (0)