terraform/config
José F. Romaniello c8795b8565 Add signum interpolation function
This function returns -1 for negative numbers, 0 for 0 and 1 for positive numbers.

Useful when you need to set a value for the first resource and a different value for the rest of the resources.

Example: `${element(split(",", var.r53_failover_policy), signum(count.index))}`
2016-01-27 12:49:52 -03:00
..
lang config: eval HEL as long as the result changes [GH-2909] 2016-01-19 12:51:56 -08:00
module config: validation error when output is missing value field 2016-01-20 14:00:36 -06:00
test-fixtures core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
append.go config: allow atlas block 2015-03-24 13:30:22 -07:00
append_test.go removed extra parentheses 2015-10-08 15:48:04 +03:00
config.go core: Display invalid type in error message 2016-01-25 10:21:12 -06:00
config_string.go core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
config_test.go config: validation error when output is missing value field 2016-01-20 14:00:36 -06:00
config_tree.go config: make Merge an exported func 2014-07-18 17:05:22 -07:00
import_tree.go Condense switch fallthroughs into expr lists 2015-05-26 21:52:36 -04:00
interpolate.go template_file: source contents instead of path 2015-11-13 11:24:20 -06:00
interpolate_funcs.go Add signum interpolation function 2016-01-27 12:49:52 -03:00
interpolate_funcs_test.go Add signum interpolation function 2016-01-27 12:49:52 -03:00
interpolate_test.go removed extra parentheses 2015-10-08 15:48:04 +03:00
interpolate_walk.go config: eval HEL as long as the result changes [GH-2909] 2016-01-19 12:51:56 -08:00
interpolate_walk_test.go config: fix tests 2016-01-19 13:17:47 -08:00
lang.go config/lang; missed file 2015-01-15 09:40:36 -08:00
loader.go config: new HCL API 2015-11-07 16:53:42 -08:00
loader_hcl.go core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
loader_hcl_test.go config: HCL loader 2014-08-11 09:58:53 -07:00
loader_test.go core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
merge.go config: allow atlas block 2015-03-24 13:30:22 -07:00
merge_test.go removed extra parentheses 2015-10-08 15:48:04 +03:00
raw_config.go provider/template: fix race causing panic in template_file 2016-01-15 16:34:46 -05:00
raw_config_test.go config: eval HEL as long as the result changes [GH-2909] 2016-01-19 12:51:56 -08:00
string_list.go go fmt the "compact" function changes. 2015-10-10 15:17:25 -07:00
string_list_test.go Add tests for empty string lists 2015-10-08 17:32:54 +02:00