Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add option to set instance_type on the launch template #2677

Closed
wants to merge 3 commits into from

Conversation

albgus
Copy link

@albgus albgus commented Jul 7, 2023

Description

This adds an extra instance_type input variable as an alternative to the existing instance_types, so users can decide between setting this on the eks_managed_node_group or in the aws_launch_template. I do feel that it might be bad to have two parameters with so similar name, and considered naming it something like launch_template_instance_type, but that also seems to go against the naming style of the other inputs..

Motivation and Context

This allows setting the instance type on the launch template rather than the EKS Managed node group. This is useful because it allows using manage node groups rolling update process to change the instance type of a node group. If the instance type is set on the manage node group directly it is not possible to change it without re-creating the node groups. Setting the instance type on in the launch template seems to be the suggested solution for that: aws/containers-roadmap#746 (comment)

Solves: #2503

Breaking Changes

No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
    • Tested with the complete example
    • Tested with the eks_managed_node_group example, adding node group setting the instance type in the launch template.
  • I have executed pre-commit run -a on my pull request

albgus added 3 commits July 6, 2023 15:56
This allows setting the instance type on the launch template rather than
the EKS Managed node group. This is useful because it is not possible to
change the instance types set on a managed node groups after creation.
The suggested way to work around this is to simply define the instance
type in the launch template.

aws/containers-roadmap#746 (comment)
@albgus albgus changed the title Add option to set instance_type on the launch template feat: Add option to set instance_type on the launch template Jul 7, 2023
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale label Aug 7, 2023
@github-actions
Copy link

This PR was automatically closed because of stale in 10 days

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant