-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Default value for map variables #2312
Comments
I was just looking for something like this for selecting PV versus HVM AMIs by instance_type. |
@ryangraham you might be interested in https://github.com/terraform-community-modules/tf_aws_virttype 😀 |
👍 |
I'd find this incredibly handy, in either the form above, or as a third parameter to |
Isn't this functionality supported sine 0.7 in the following form?
|
Yes, it got implemented but many of the PRs asking for it were updated slowly. Here's another reference, demonstrating how you can use a |
Hi all, As @arshdeeptinna pointed out, the Since there's already a solution for this, I'm going to close this out. Sorry for letting this sit here for so long. |
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hello,
As suggested by @jdotpz in the google group it would be handy if map variables were able to have a default value. Example:
Such that:
Another possible extension would be to allow for differentiating between "catch-all" and "empty / undefined" - this should be debated first, however. 😏 :
Such that:
The text was updated successfully, but these errors were encountered: