Skip to content

Conversation

@raffraffraff
Copy link
Contributor

@raffraffraff raffraffraff commented Oct 28, 2025

Description

The type for the variable 'timeouts' is incorrect. When it is passed to the "aws_ec2_transit_gateway" resource, which requires a map of strings, not booleans, it breaks. This probably got missed because timeouts is not in the complete example (I added it there)

Motivation and Context

The 3.0.0 version introduced a very odd change to the variables, switching timeouts type from map(any) to an object of bools. Makes no sense, and doesn't work at all with the aws_ec2_transit_gateway resource. The issue would only be detected if the module is used to create a transit gateway with specific timeouts set.

Breaking Changes

None.

How Has This Been Tested?

  • I have updated the examples/complete/main.tf to demonstrate and validate my change(s)
  • I have executed pre-commit run -a on my pull request

@raffraffraff raffraffraff changed the title Fixing the timeout variable type Fix: timeout variable type Oct 28, 2025
@raffraffraff raffraffraff changed the title Fix: timeout variable type fix: timeout variable type Oct 28, 2025
@raffraffraff raffraffraff changed the title fix: timeout variable type fix: Timeout variable type Oct 28, 2025
@bryantbiggs bryantbiggs changed the title fix: Timeout variable type fix: Correct timeouts variable type definition from optional(bool) to optional(string) Oct 28, 2025
@raffraffraff
Copy link
Contributor Author

Christ what does this want from me, I have a day job to get back to. FIX:? Fix:? fix:? fix: Capitalized?

@bryantbiggs
Copy link
Member

Christ what does this want from me, I have a day job to get back to. FIX:? Fix:? fix:? fix: Capitalized?

https://www.conventionalcommits.org/en/v1.0.0/

@raffraffraff
Copy link
Contributor Author

Thanks! I just got it myself on the last attemt, after looking at another PR, but your rename made it a no-op.

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.

thank you!

@bryantbiggs bryantbiggs merged commit cb116df into terraform-aws-modules:master Oct 28, 2025
7 checks passed
antonbabenko pushed a commit that referenced this pull request Oct 28, 2025
## [3.0.2](v3.0.1...v3.0.2) (2025-10-28)

### Bug Fixes

* Correct `timeouts` variable type definition from `optional(bool)` to `optional(string)` ([#150](#150)) ([cb116df](cb116df))
@antonbabenko
Copy link
Member

This PR is included in version 3.0.2 🎉

@raffraffraff raffraffraff deleted the fix_timeout_variable branch October 29, 2025 14:15
@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 29, 2025
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.

Timeouts variable broken since v3.0.0

4 participants