Commit Graph

46 Commits

Author SHA1 Message Date
Bryant Biggs
78027f37e4 feat: Add support for enabling addons before data plane compute is created (#2478) 2023-02-17 07:28:03 -05:00
Adin Hodovic
059dc0c67c feat: Add prometheus-adapter port 6443 to recommended sec groups (#2399)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
2023-01-28 08:02:12 -05:00
Pavlos-Petros Tournaris
e391a99a7b fix: Drop spot-instances-request from tag_specifications (#2363)
* Drop spot-instances-request from tag_specifications

* fix: Update documentation

Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
2022-12-20 13:23:44 -05:00
Alex Swehla
df7c57c199 fix: Correct eks_managed_* to self_managed_* for tag_specification argument (#2364)
Fix incorrect variable name on self managed nodes

Self managed nodes were pulling from the eks_managed_node_group_defaults and not self_managed_node_group_defaults for tag_specifications.
2022-12-20 09:36:27 -05:00
Bryant Biggs
094ed1d5e4 feat: Allow configuring which tags are passed on launch template tag specifications (#2360)
Resolves undefined
2022-12-19 13:50:32 -05:00
Bryant Biggs
13a9542dad fix: Correct map name for security group rule 4443/tcp (#2354) 2022-12-18 13:31:45 -05:00
Bryant Biggs
5a270b7bf8 feat: Add additional port for metrics-server to recommended rules (#2353) 2022-12-18 12:36:39 -05:00
Bryant Biggs
ca03fd9ec1 docs: Correct spelling mistakes (#2334)
Resolves undefined
2022-12-08 09:35:28 -05:00
Adam Staudt
7bc4a2743f fix: Call to lookup() closed too early, breaks sg rule creation in cluster sg if custom source sg is defined. (#2319)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
2022-12-06 14:10:29 -05:00
Bryant Biggs
b2e97ca3dc feat!: Add support for Outposts, remove node security group, add support for addon preserve and most_recent configurations (#2250)
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
Resolves undefined
2022-12-05 16:26:23 -05:00
Ian Lunam
f2d67ffa97 fix: Use partition data source on VPC CNI IPv6 policy (#2161) 2022-07-20 07:01:07 -04:00
Bryant Biggs
c4e6d28fc0 fix: Correct Fargate profiles additional IAM role policies default type to match variable (#2143) 2022-07-05 14:06:25 -04:00
Bryant Biggs
2d7701c3b0 fix: Correct variable types to improve dynamic check correctness (#2133) 2022-07-01 07:53:43 -04:00
Bryant Biggs
4543ab454b feat: Add support for specifiying NTP address to use private Amazon Time Sync Service (#2125) 2022-06-28 12:16:20 -04:00
Gabriel Féron
8584dcb2e0 feat: Add autoscaling_group_tags variable to self-managed-node-groups (#2084)
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
2022-06-02 08:26:49 -04:00
Seth Pollack
58420b92a0 feat: Add create_autoscaling_group option and extra outputs (#2067) 2022-05-12 14:17:49 -04:00
Bryant Biggs
6db89f8f20 feat: Add create_before_destroy lifecycle hook to security groups created (#1985) 2022-04-04 16:34:29 +02:00
Chris McNabb
7a9458af52 feat: Support default_tags in aws_autoscaling_group (#1973) 2022-03-29 09:07:13 +02:00
Bryant Biggs
fd3a3e9a96 fix: Default to cluster version for EKS and self managed node groups when a cluster_version is not specified (#1963) 2022-03-24 15:56:55 +01:00
Bryant Biggs
e21db83d8f feat: Allow users to selectively attach the EKS created cluster primary security group to nodes (#1952) 2022-03-23 15:41:39 +01:00
Bryant Biggs
a9d2cc8246 feat: Allow users to specify default launch template name in node groups (#1946) 2022-03-18 12:29:17 +01:00
Bryant Biggs
74ad4b09b7 fix: Update autoscaling group tags -> tag to support v4 of AWS provider (#1866) 2022-02-15 14:01:52 +01:00
Bryant Biggs
c821ba78ca fix: Use existing node security group when one is provided (#1861) 2022-02-09 13:31:47 +01:00
PhilippMT
665f468c1f feat: Allow conditional creation of node groups to be set within node group definitions (#1848) 2022-02-08 10:16:08 +01:00
kahirokunn
9186defcf6 feat: Add launch_template_tags variable for additional launch template tags (#1835) 2022-02-03 15:45:50 +01:00
efaif
d6888b5eb6 fix: add missing launch_template_use_name_prefix parameter to the root module (#1818) 2022-01-30 18:15:21 +01:00
Bryant Biggs
4af77f244a fix: Add missing mixed_instances_policy parameter to the root module (#1808) 2022-01-24 21:19:13 +01:00
Bryant Biggs
8e4dfa2be5 fix: Change instance_metadata_tags to default to null/disabled due to tag key pattern conflict (#1788) 2022-01-18 15:03:09 +01:00
Bryant Biggs
85bb1a00b6 feat: Add instance_metadata_tags attribute to launch templates (#1781) 2022-01-14 21:22:58 +01:00
Bryant Biggs
314192e2eb feat: Add support for networking ip_family which enables support for IPV6 (#1759) 2022-01-14 21:17:03 +01:00
Martijn van der Ploeg
62879dd81a fix: Use the prefix_seperator var for node sg prefix (#1751) 2022-01-08 21:37:19 +01:00
Bryant Biggs
ee9f0c646a feat!: Removed support for launch configuration and replace count with for_each (#1680) 2022-01-05 13:01:31 +01:00
Dawid Rogaczewski
56e93d77de feat: Removed ng_depends_on variable and related hack (#1672) 2021-11-06 20:19:03 +01:00
Steve Hipwell
7c335546d6 fix: MNG cluster datasource errors (#1639) 2021-10-14 09:47:27 +02:00
Anton Babenko
2bdf7d7dd6 refactor: Refactoring to match the rest of terraform-aws-modules (#1583) 2021-09-16 11:35:44 +02:00
Robert Kozak
b7413b3e37 feat: Allow override of timeouts in node_groups (#1552) 2021-09-03 17:07:59 +02:00
Ryan White
3b1229837a feat: Enable ebs_optimized setting for node_groups (#1459) 2021-08-25 15:21:08 +02:00
Kevin Lefevre
2e1651df86 feat: Create launch template for Managed Node Groups (#1138)
Signed-off-by: Kevin Lefevre <lefevre.kevin@gmail.com>
2021-04-19 22:40:37 +02:00
Thierno IB. BARRY
616d30ec67 feat: Add a homemade depends_on for MNG submodule to ensure ordering of resource creation (#867) 2020-06-28 02:31:23 +02:00
Thierno IB. BARRY
527d4bd3f5 fix: Use splat syntax for cluster name to avoid (known after apply) in managed node groups (#868) 2020-05-07 09:17:05 +02:00
Daniel Piddock
89401f1623 fix: Add node_group direct dependency on eks_cluster (#796)
Setting `manage_aws_auth = false` removes the ordering dependency
between node_group and eks_cluster generating an error on first apply.
This fixes that use case.

Fixes #793
2020-03-18 09:09:32 +01:00
Max Williams
626a393ab9 Remove of autoscaling IAM policy related stuff (#716)
* Disable management of autoscaling IAM policy by default

* remove completely

* update changelog notes

* fix pre-commit stuff

* misc updates

* fmt

* fix changelog

* Removal of tags and update docs

* Change after updating terraform-docs

* Add second tag
2020-02-04 19:34:17 +01:00
Daniel Piddock
11147e9af3 Node groups submodule (#650)
* WIP Move node_groups to a submodule

* Split the old node_groups file up

* Start moving locals

* Simplify IAM creation logic

* depends_on from the TF docs

* Wire in the variables

* Call module from parent

* Allow to customize the role name. As per workers

* aws_auth ConfigMap for node_groups

* Get the managed_node_groups example to plan

* Get the basic example to plan too

* create_eks = false works

"The true and false result expressions must have consistent types. The
given expressions are object and object, respectively."
Well, that's useful. But apparently set(string) and set() are ok. So
everything else is more complicated. Thanks.

* Update Changelog

* Update README

* Wire in node_groups_defaults

* Remove node_groups from workers_defaults_defaults

* Synchronize random and node_group defaults

* Error: "name_prefix" cannot be longer than 32

* Update READMEs again

* Fix double destroy

Was producing index errors when running destroy on an empty state.

* Remove duplicate iam_role in node_group

I think this logic works. Needs some testing with an externally created
role.

* Fix index fail if node group manually deleted

* Keep aws_auth template in top module

Downside: count causes issues as usual: can't use distinct() in the
child module so there's a template render for every node_group even if
only one role is really in use. Hopefully just output noise instead of
technical issue

* Hack to have node_groups depend on aws_auth etc

The AWS Node Groups create or edit the aws-auth ConfigMap so that nodes
can join the cluster. This breaks the kubernetes resource which cannot
do a force create. Remove the race condition with explicit depend.

Can't pull the IAM role out of the node_group any more.

* Pull variables via the random_pet to cut logic

No point having the same logic in two different places

* Pass all ForceNew variables through the pet

* Do a deep merge of NG labels and tags

* Update README.. again

* Additional managed node outputs #644

Add change from @TBeijin from PR #644

* Remove unused local

* Use more for_each

* Remove the change when create_eks = false

* Make documentation less confusing

* node_group version user configurable

* Pass through raw output from aws_eks_node_groups

* Merge workers defaults in the locals

This simplifies the random_pet and aws_eks_node_group logic. Which was
causing much consernation on the PR.

* Fix typo

Co-authored-by: Max Williams <max.williams@deliveryhero.com>
2020-01-09 12:53:08 +01:00
Jeff Hastings
11d8ee8631 Fix idempotency with node group remote_access block (#625)
* add kubernetes provider configuration for managed_node_groups example

* use dynamic block for remote_access

* update changelog
2019-12-11 17:50:09 +01:00
Tomislav Tomašić
124ea7c151 Add destroy time flag (#580)
* Add destroy-time flag

* Update changelog

Fix cluster count

* Fix cluster count

* Fix docs

* Fix outputs

* Fix unsupported attribute on cluster_certificate_authority_data output

Co-Authored-By: Daniel Piddock <33028589+dpiddockcmp@users.noreply.github.com>

* Remove unnecessary flatten from cluster_endpoint output

Co-Authored-By: Daniel Piddock <33028589+dpiddockcmp@users.noreply.github.com>

* Improve description of var.enabled

* Fix errors manifesting when used on an existing-cluster

* Update README.md

* Renamed destroy-time flag

* Revert removal of changelog addition entry

* Update flag name in readme

* Update flag variable name

* Update cluster referencing for consistency

* Update flag name to `create_eks`

* Fixed incorrect count-based reference to aws_eks_cluster.this (there's only one)

* Replaced all incorrect aws_eks_cluster.this[count.index] references (there will be just one, so using '[0]').

* Changelog update, explicitly mentioning flag

* Fixed interpolation deprecation warning

* Fixed outputs to support conditional cluster

* Applied create_eks to aws_auth.tf

* Removed unused variable. Updated Changelog. Formatting.

* Fixed references to aws_eks_cluster.this[0] that would raise errors when setting create_eks to false whilst having launch templates or launch configurations configured.

* Readme and example updates.

* Revert "Readme and example updates."

This reverts commit 18a0746355e136010ad54858a1b518406f6a3638.

* Updated readme section of conditionally creation with provider example.

* Added conditions to node_groups.

* Fixed reversed map_roles check

* Update aws_auth.tf

Revert this due to https://github.com/terraform-aws-modules/terraform-aws-eks/pull/611
2019-12-09 10:06:10 +01:00
William Morgan
cf3dcc5c58 Support for EKS Managed Node Groups (#602)
* Finished first cut of managed node groups

* Updated formatting and extra fields.

* Updating Changelog and README

* Fixing formatting

* Fixing docs.

* Updating required Version

* Updating changelog

* Adding example for managed node groups

* Managed IAM Roles for Nodegroups now have correct policies. Tags can now be added to node groups.

* Fixing bug where people could set source_security_group_ids without setting ssh key causing a race condition within the aws provider.

* Adding lifecycle create_before_destroy

* Adding random pet names for create_before_destroy

* Updating per comments.

* Updating required versions of terraform

* Updating per comments.

* Updating vars

* Updating minimum version for terraform

* Change worker_groups_managed_node_groups to node_groups

* Using for_each on the random_pet

* Adding changes recommended by @eytanhanig

* Update node_groups.tf
2019-12-04 18:30:36 +01:00