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: Add missing quotes to block_duration_minutes #1881

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

agconti
Copy link
Contributor

@agconti agconti commented Feb 15, 2022

Description

Adds missing quotes to the block_duration_minutes value in spot_options.

Motivation and Context

Without these quotes terraform will think it's a resource and will throw an Invalid reference error :

│ Error: Invalid reference
│ 
│   on .terraform/modules/reactive_cluster.eks.eks/modules/self-managed-node-group/main.tf line 161, in resource "aws_launch_template" "this":
│  161:           block_duration_minutes         = lookup(spot_options.value, block_duration_minutes, null)
│ 
│ A reference to a resource type must be followed by at least one attribute access, specifying the resource name.

Breaking Changes

None

How Has This Been Tested?

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

@agconti agconti changed the title fix(self-managed-node-group/main): add missing quotes to block_duration_minutes fix: add missing quotes to block_duration_minutes Feb 15, 2022
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

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

thanks for the fix @agconti - just capitalize Add in your PR title and should be good to go

cc @antonbabenko 👍🏽

@agconti agconti changed the title fix: add missing quotes to block_duration_minutes fix: Add missing quotes to block_duration_minutes Feb 15, 2022
@agconti
Copy link
Contributor Author

agconti commented Feb 15, 2022

Great, done @bryantbiggs. Thanks for the quick review!

@antonbabenko antonbabenko merged commit 8bc6488 into terraform-aws-modules:master Feb 15, 2022
antonbabenko pushed a commit that referenced this pull request Feb 15, 2022
### [18.7.1](v18.7.0...v18.7.1) (2022-02-15)

### Bug Fixes

* Add missing quotes to block_duration_minutes ([#1881](#1881)) ([8bc6488](8bc6488))
@antonbabenko
Copy link
Member

This PR is included in version 18.7.1 🎉

baibailiha added a commit to baibailiha/terraform-aws-eks that referenced this pull request Sep 13, 2022
@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