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

fix: The block_duration_minutes attribute under launch template spot_options is not a required #1847

Conversation

bryantbiggs
Copy link
Member

Description

  • block_duration_minutes under launch template spot_options is not a required attribute
  • Fix compelte example, external EKS managed node group module which was missing the security group IDs and failing to join the cluster

Motivation and Context

Breaking Changes

  • No

How Has This Been Tested?

  • I have tested and validated these changes using one or more of the provided examples/* projects

@bryantbiggs bryantbiggs changed the title fix: block_duration_minutes under launch template spot_options is not a required attribute fix: The block_duration_minutes attribute under launch template spot_options is not a required Feb 4, 2022
@antonbabenko antonbabenko merged commit ccc4747 into terraform-aws-modules:master Feb 4, 2022
antonbabenko pushed a commit that referenced this pull request Feb 4, 2022
### [18.3.1](v18.3.0...v18.3.1) (2022-02-04)

### Bug Fixes

* The `block_duration_minutes` attribute under launch template `spot_options` is not a required ([#1847](#1847)) ([ccc4747](ccc4747))
@antonbabenko
Copy link
Member

This PR is included in version 18.3.1 🎉

@bryantbiggs bryantbiggs deleted the fix/spot-block-duration branch February 4, 2022 20:12
@@ -158,7 +158,7 @@ resource "aws_launch_template" "this" {
dynamic "spot_options" {
for_each = lookup(instance_market_options.value, "spot_options", null) != null ? [instance_market_options.value.spot_options] : []
content {
block_duration_minutes = spot_options.value.block_duration_minutes
block_duration_minutes = lookup(spot_options.value, block_duration_minutes, null)
Copy link
Contributor

@agconti agconti Feb 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antonbabenko block_duration_minutes should be quoted right?

block_duration_minutes = lookup(spot_options.value, "block_duration_minutes", null)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this looks like a bug

block_duration_minutes = lookup(spot_options.value, block_duration_minutes, null)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, opened a pr: #1881

baibailiha added a commit to baibailiha/terraform-aws-eks that referenced this pull request Sep 13, 2022
### [18.3.1](terraform-aws-modules/terraform-aws-eks@v18.3.0...v18.3.1) (2022-02-04)

### Bug Fixes

* The `block_duration_minutes` attribute under launch template `spot_options` is not a required ([#1847](terraform-aws-modules/terraform-aws-eks#1847)) ([85dd887](terraform-aws-modules/terraform-aws-eks@85dd887))
@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 Nov 10, 2022
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.

3 participants