terraform/config
Joshua Spence af2c84de5a Add `basename` and `dirname` functions
Adds `basename` and `dirname` interpolation. I want to add a `stack` tag to our infrastructure, the value of which is set to `${basename(path.cwd)}`. We currently use `${replace(path.cwd, "/^.+\\//", "")}` instead, but this is extremeley unreadable. The existance of a `basename` function would be very useful for this use case.

I don't have an immediate use case for a `dirname` function, but it seemed reasonable to add it as well.
2017-03-28 09:29:26 -07:00
..
module config/module: don't panic when referencing undefined module 2017-03-16 20:14:20 -07:00
test-fixtures restructure JSON terraform config block AST 2017-03-21 18:15:58 -04:00
append.go merge config.Terraform fields in config.Append 2017-03-21 15:43:55 -04:00
append_test.go add terraform config merge logic to config.Merge 2017-03-22 09:01:54 -04:00
config.go config: allow TerraformVars in count 2017-03-13 16:38:54 -07:00
config_string.go config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -08:00
config_terraform.go merge config.Terraform fields in config.Append 2017-03-21 15:43:55 -04:00
config_terraform_test.go config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -08:00
config_test.go Fix panic in interpolate_walk 2017-03-07 15:35:40 -05:00
config_tree.go
import_tree.go Condense switch fallthroughs into expr lists 2015-05-26 21:52:36 -04:00
interpolate.go config: parse TerraformVariables 2017-03-13 16:09:06 -07:00
interpolate_funcs.go Add `basename` and `dirname` functions 2017-03-28 09:29:26 -07:00
interpolate_funcs_test.go Add `basename` and `dirname` functions 2017-03-28 09:29:26 -07:00
interpolate_test.go config: parse TerraformVariables 2017-03-13 16:09:06 -07:00
interpolate_walk.go Fix panic in interpolate_walk 2017-03-07 15:35:40 -05:00
interpolate_walk_test.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
lang.go remove config/lang, use hashicorp/hil 2016-02-03 13:24:04 -05:00
loader.go command/import: load configurations and allow empty config dirs 2016-11-09 15:08:22 -08:00
loader_hcl.go restructure JSON terraform config block AST 2017-03-21 18:15:58 -04:00
loader_hcl_test.go
loader_test.go restructure JSON terraform config block AST 2017-03-21 18:15:58 -04:00
merge.go add terraform config merge logic to config.Merge 2017-03-22 09:01:54 -04:00
merge_test.go add terraform config merge logic to config.Merge 2017-03-22 09:01:54 -04:00
provisioner_enums.go config: parse "when" and "on_failure" on provisioners 2017-01-19 18:10:21 -08:00
raw_config.go config: Merge respects Terraform blocks, provider aliases, and more 2016-12-13 21:48:59 -08:00
raw_config_test.go config: validate that RawConfig.Copy doesn't copy the interpolated 2016-12-02 13:25:32 -05:00
resource_mode.go config: "ResourceMode" concept for resources 2016-05-14 08:26:35 -07:00
resource_mode_string.go config: "ResourceMode" concept for resources 2016-05-14 08:26:35 -07:00
testing.go terraform: rename attach config to only attach provider config 2016-10-19 13:38:51 -07:00