-
-
Notifications
You must be signed in to change notification settings - Fork 231
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: Correct validation_option
variable type
#112
fix: Correct validation_option
variable type
#112
Conversation
variables.tf
Outdated
@@ -53,7 +53,7 @@ variable "validation_method" { | |||
|
|||
variable "validation_option" { | |||
description = "The domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use." | |||
type = map(string) | |||
type = map(any) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh, these types are more pain that value currently. lets just go with any
for now till we get to v1.3 support
type = map(any) | |
type = any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bryantbiggs updated vars and README. ( even map(map(string)) would have worked as I tested. but that looked to ugly to me *G)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya, its a shame - but once we reach a point where we can set v1.3 as minimum we can have better defined variable data structures. Thanks for the fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can/should consider upgrading to 1.3 earlier than at least 6-10 months after it will be released. For now, any
is the most flexible way + we have the examples to see the structure.
440f915
to
321ef3b
Compare
321ef3b
to
1db86f4
Compare
validation_option
variable type
### [4.0.1](v4.0.0...v4.0.1) (2022-06-17) ### Bug Fixes * Type of var.validation_option ([#112](#112)) ([69c1f88](69c1f88))
This PR is included in version 4.0.1 🎉 |
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. |
Description
in #106 we managed to merge non-working code, I am afraid. A suggestion by @bryantbiggs changed the
map(object..)
to amap(string)
which I applied. however it needs to be amap(any)
It probably went unnoticed when @antonbabenko tested the example as he used a version that hadnt the suggestion applied yet.
Motivation and Context
using
v4.0
results inwhen changing the variable type, TF shows a diff as expected