Commit Graph

291 Commits

Author SHA1 Message Date
Alex Romanov
069c2da770 typo (#407) 2019-06-24 15:41:40 +02:00
till-krauss
ba3377360e Added Option to use KMS key for cloudwatch logs group. (#404) 2019-06-24 12:53:43 +02:00
Gauthier
8260f1095e EKS 1.13 out (#400)
* Update to EKS 1.13

* Revert "Pin terraform version < 0.12"

This reverts commit 4c71b12218378914c276715a85a61ac5aece9fa0.

* Update providers in examples and format
2019-06-20 12:18:12 +02:00
Max Williams
9c3d222bd5 New release: now supporting TF 0.12!! (#399)
* New release: now supporting TF 0.12

* updating precommit hook version
2019-06-19 17:27:25 +02:00
刘相轩
da2c78b8ba Upgrade to terraform 0.12 (#394)
* run terraform upgrade tool

* fix post upgrade TODOs

* use strict typing for variables

* upgrade examples, point them at VPC module tf 0.12 PR

* remove unnecessary `coalesce()` calls

coalesce(lookup(map, key, ""), default) -> lookup(map, key, default)

* Fix autoscaling_enabled broken (#1)

* always set a value for tags, fix coalescelist calls

* always set a value for these tags

* fix tag value

* fix tag value

* default element available

* added default value

* added a general default

without this default - TF is throwing an error when running a destroy

* Fix CI

* Change vpc module back to `terraform-aws-modules/vpc/aws` in example

* Update CHANGELOG.md

* Change type of variable `cluster_log_retention_in_days` to number

* Remove `xx_count` variables

* Actual lists instead of strings with commas

* Remove `xx_count` variable from docs

* Replace element with list indexing

* Change variable `worker_group_tags` to a attribute of worker_group

* Fix workers_launch_template_mixed tags

* Change override_instance_type_x variables to list.

* Update CHANGELOG.md
2019-06-19 09:57:51 +02:00
Camilo Santana
3f0601551f adds tags to resource aws_iam_role.cluster (#390)
* adds tagging to iam role

Signed-off-by: camilo santana <camilo.santana@procore.com>

* emulates name_prefix

Signed-off-by: camilo santana <camilo.santana@procore.com>

* incriment version

Signed-off-by: camilo santana <camilo.santana@procore.com>

* tags iam role

Signed-off-by: camilo santana <camilo.santana@procore.com>

* improve resource name

Signed-off-by: camilo santana <camilo.santana@procore.com>

* removes comments

Signed-off-by: camilo santana <camilo.santana@procore.com>

* reverts erroneous increment to release version

Signed-off-by: camilo santana <camilo.santana@procore.com>

* reverts aws_iam_role.cluster name to orig value

Signed-off-by: camilo santana <camilo.santana@procore.com>

* removes random suffix idea

i was using random_id until i could figure out a datestamp or something here. `name_prefix` does a better job.

Signed-off-by: camilo santana <camilo.santana@procore.com>

* terraform fmt on local.tf

Signed-off-by: camilo santana <camilo.santana@procore.com>
2019-06-13 10:36:58 +02:00
Yurii Polishchuk
bf5dae00e1 Enable log retention for cloudwatch log groups (#387)
* enable log retention for cloudwatch log groups

* revert version bump

* set default retention to 90 days
2019-06-13 10:03:34 +02:00
Mitch Anderson
758fdab1ee Termination Policy Option to worker ASG (#393)
* Adding Worker ASG Option for termination_policies, default set to Default

* Adding setting to launch template and mixed

* Updated a few more things per PR notes

* Change termination_policy default from "Default" to ""
2019-06-12 18:11:24 +02:00
Feifei Jia
8c61f58a01 add additional policies for control plane log setup. (#377)
* add additional policies for control plane log setup.

* Fix typos (#379)

* Fix IAM instance profile toggle for mixed launch templates (#381)

* add additional policies for control plane log setup.

* add two actions.
2019-05-29 16:06:24 +02:00
Gauthier
feb8810af2 Update EBS optimized instances type (#384)
* Update EBS optimized instances type

* Update changelog

* Pin terraform version < 0.12
2019-05-29 16:04:23 +02:00
jnozo
a9753e8303 Fix IAM instance profile toggle for mixed launch templates (#381) 2019-05-15 17:29:25 +02:00
Thuan Duong
763a3d5baa Fix typos (#379) 2019-05-13 09:55:54 +02:00
Max Williams
d6fa9f48ff Better examples, PR template changes, general tidy up (#375)
* adding 3 examples

* removing old example

* updating PR template

* fix this typo

* update after renaming default example

* add missing launch_template_mixed stuff to aws_auth

* fix 2 examples with public subnets

* update changelog for new minor release
2019-05-08 15:11:05 +02:00
Max Williams
f0838165e2 Fix annoying typo: worker_group_xx vs worker_groups_xx (#374) 2019-05-07 18:22:39 +02:00
Max Williams
f155e4062b New release v4.0.0 (#373) 2019-05-07 17:06:39 +02:00
Max Williams
ae2f8e58db Adding new mixed type of worker group with instance overrides and mixed instances policy (#371)
* Adding new mixed type of worker group with instance overrides and mixed instances policy

* moving all count and lifecycle rule parameters to top/bottom

* adding custom IAM parts

* updating doc with new options

* fixes for spot instances
2019-05-07 16:50:42 +02:00
Max Williams
2439c25771 Cleaning up and deduplicating launch template related code (#370)
* cleaning up launch template code

* update changelog

* Remove variable worker_group_launch_template_tags

* misc fixes

* fixing and simplifying example
2019-05-07 15:41:44 +02:00
Touch Ungboriboonpisal
959e5330e3 Support custom IAM roles for cluster and workers (#338)
* allow specifying custom worker IAM instance profiles

* allow specifying custom cluster IAM role

* add doc

* update changelog

* use data.aws_iam_instance_profile.name
2019-05-07 14:46:06 +02:00
Alex Snast
613fb1ca96 adding cluster arn to outputs (#372) 2019-05-07 14:16:32 +02:00
Max Williams
60dfeca191 Adding 2 new outputs: AMI ID and work user-data (#364)
* Adding 2 new outputs: AMI ID and work user-data

* adding separate outputs to include both
2019-05-07 11:09:44 +02:00
Max Williams
1660105970 Disabling ASG process AZRebalance by default (#369) 2019-05-07 11:00:49 +02:00
Max Williams
b27b58257d Adding doc about spot instances (#362)
* Adding doc about spot instances

* updating LT worker group details

* updating doc
2019-05-07 10:59:43 +02:00
Max Williams
3ece32fedf Fixes for Launch Templates (#361)
* Fixes for Launch Templates

* update changelog

* add outputs for 3 LT attributes
2019-05-07 10:59:07 +02:00
Ivan Kovnatsky
2b633a107d Fix small typo (#367) 2019-05-02 11:48:09 +02:00
Võ Anh Duy
18baeea1fc Add option to use custom service linked role for Auto Scaling group (#359) 2019-04-29 10:45:56 +02:00
Andrew Roth
d4be9f4710 Add .prettierignore file (#350)
* Add .prettierignore file

Signed-off-by: Andrew Roth <roth.andy@gmail.com>

* Add to changelog

Signed-off-by: Andrew Roth <roth.andy@gmail.com>

* Add missing trailing newline

Signed-off-by: Andrew Roth <roth.andy@gmail.com>
2019-04-18 09:32:36 +02:00
Andrew Roth
2c89a8fd35 Switch to https for the pre-commit repos (#349)
* Switch to https for the pre-commit repos

Signed-off-by: Andrew Roth <roth.andy@gmail.com>

* Add to changelog

Signed-off-by: Andrew Roth <roth.andy@gmail.com>

* Undo formatting from prettier plugin

Signed-off-by: Andrew Roth <roth.andy@gmail.com>
2019-04-18 09:28:49 +02:00
Andrew Roth
b2da12dc6e Add instructions on how to enable the docker bridge network (#352)
Signed-off-by: Andrew Roth <roth.andy@gmail.com>
2019-04-18 09:26:13 +02:00
Max Williams
1a26f353d8 Release v3.0.0 (#347)
Also fixing AWS provider in examples
2019-04-15 17:39:37 +02:00
Jeffrey Rose
47c7e7ad6f Fix: ENI's prevent SecGrps from being destroyed on tf destroy (#311)
* Fix: remove ENI's on term fixes cluster destroy issues with security group still attached

* Fix: delete ENIs on term to allow sg destroy
2019-04-11 15:29:35 +02:00
Scott Crooks
18e00861e4 Adding EKS Control Plane logging options (#340)
* Adding EKS Control Plane logging options

* Added feature addition

* Removing 'optional'

* Adding documentation, and changing variable order

* Using pre-commit instead

* adding IAM instance profiles to outputs, addresses #323 (#329)

* adding IAM instance profiles to outputs

* updating changelog

* updated README
2019-04-11 15:21:09 +02:00
rverma-nikiai
b81a15ad41 Add support for placement group in launch template (#332)
* Update to 1.12

* Update workers_launch_template.tf

* Update local.tf

* Update CHANGELOG.md

* Update workers.tf

* Update workers.tf
2019-04-11 15:15:07 +02:00
soapergem
fb59e4fef4 adding IAM instance profiles to outputs, addresses #323 (#329)
* adding IAM instance profiles to outputs

* updating changelog

* updated README
2019-04-11 15:12:01 +02:00
chenrui
46ec636b36 Update eks module deps (#334) 2019-04-03 13:10:25 +02:00
Stijn De Haes
7a4484552f Update to 1.12 (#327) 2019-04-03 12:30:58 +02:00
Max Williams
f1858c81f1 New release: 2.3.1 (#321) 2019-03-26 17:26:08 +01:00
Max Williams
8b2e1c2dd8 Replacing enable_docker_bridge with a generic option called bootstrap_extra_args (#320)
* Replacing enable_docker_bridge with a generic option called bootstrap_extra_args

* making breaking change more obvious
2019-03-26 17:20:39 +01:00
Stijn De Haes
806edb6001 Add support for eks endpoint_private_access and endpoint_public_access (#314) 2019-03-25 12:05:32 +01:00
Scott Crooks
97c79643fb Adding minimum communication security group rule for Kubelet (#318)
* Adding minimum communication

The docs at https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html specify that port 10250 is needed at a minimum for communication between the control plane, and the worker nodes. If you specify a `worker_sg_ingress_from_port` as something like `30000`, then this minimum communication is never established.

* Adding description to CHANGELOG.md

* Adjusting the naming of the resources

* Ensuring creation is conditional on the value of `worker_sg_ingress_from_port`

* Mistake, should be greater than port 10250
2019-03-25 11:58:55 +01:00
Max Williams
a26a43ae63 Release v.2.3.0 (#309) 2019-03-20 13:54:42 +01:00
Matheus Fernandes
fd1f149432 Add support for placement groups (#306) 2019-03-20 13:38:41 +01:00
Nicolas Szalay
bef3c36a40 Allow additional policies to be attached to worker nodes (#308)
Example usage : we want our nodes to be able to update route53 record
for using external-dns.

```hcl
data "template_file" "eks_worker_additional_route53_policy" {
  template = "${file("iam/route53_policy.json.tpl")}"
}

resource "aws_iam_policy" "eks_worker_additional_route53_policy" {
  description = "Allow nodes to update our zone"
  name = "${module.k8s_cluster01_label.id}-additional-route53-policy"
  policy = "${data.template_file.eks_worker_additional_route53_policy.rendered}"
}
```

which defines the policy; then in the EKS module :
```hcl
module "cluster01" {
  cluster_name = "cluster01"
<snip>
  workers_addtional_policies = [
    "${aws_iam_policy.eks_worker_additional_route53_policy.arn}"
  ]
  workers_addtional_policies_count = 1
<snip>
```
2019-03-20 13:30:16 +01:00
Taylor Barrella
efaa3d8d60 Add cluster name and ephemeral storage tags for cluster autoscaler (#299) 2019-03-20 13:19:38 +01:00
michaelmccord
80085f50ab Add enable_docker_bridge (#302) 2019-03-13 17:30:41 +01:00
Brandon J. O'Connor
d02bbc5e1e Merge pull request #298 from skang0601/fix-cluster-autoscaler-role-for-launch-templates
add ec2:DescribeLaunchTemplateVersions action to worker node iam role
2019-03-07 10:31:35 -08:00
Brandon J. O'Connor
bb6921e3e2 Merge branch 'master' into fix-cluster-autoscaler-role-for-launch-templates 2019-03-07 09:57:42 -08:00
russki
3795811beb Adding workers_launch_template ebs encryption (#292)
* Adding workers_launch_template ebs encryption

* Update CHANGELOG.md
2019-03-07 15:58:59 +01:00
Sung Kang
28fd3c5530 add ec2:DescribeLaunchTemplateVersions action to worker node iam role 2019-03-07 07:39:44 -06:00
Brandon J. O'Connor
bb9c1b0b54 Merge pull request #284 from tekn0ir/iam_path
Add optional iam_path
2019-03-06 23:09:00 -08:00
Brandon J. O'Connor
9fe2cfd57f Merge pull request #296 from max-rocket-internet/ami_filter
Adding optional name filter variable to be able to pin worker AMI to a release
2019-03-06 22:51:59 -08:00