Commit Graph

793 Commits (ba7679b6791a306a73062ddd5a00359452e152fc)

Author SHA1 Message Date
James Bardin ff2d753062 add Rehash to terraform.BackendState
9 years ago
Martin Atkins 76dca009e0 Allow escaped interpolation-like sequences in variable defaults
9 years ago
Martin Atkins 21cd5595e2 Update stringer-generated files to new boilerplate
9 years ago
Joshua Spence af2c84de5a Add `basename` and `dirname` functions
9 years ago
Joshua Spence e71d6d92ad Add a substring interpolation function (#12870)
9 years ago
James Bardin 579e15c97c Merge pull request #12942 from hashicorp/jbardin/GH-12905
9 years ago
James Bardin bcbcc65f7d add terraform config merge logic to config.Merge
9 years ago
James Bardin 8bcb9e19ca restructure JSON terraform config block AST
9 years ago
James Bardin b38e620b2f merge config.Terraform fields in config.Append
9 years ago
Benjamin Boudreau 073fa873ac Fix receive typo (#12881)
9 years ago
Mitchell Hashimoto 68ee4e0480
config/module: don't panic when referencing undefined module
9 years ago
Mitchell Hashimoto f7da5d323c
config: test that JSON loading terraform backend info works
9 years ago
James Bardin 2e3579b058 Merge pull request #12383 from hashicorp/jbardin/multi-var-errs
9 years ago
Mitchell Hashimoto e2ca2c5911
config: allow TerraformVars in count
9 years ago
Mitchell Hashimoto 786334b643
config: parse TerraformVariables
9 years ago
Pryz 733f1ca1e7 Add coalescelist interpolation function
9 years ago
James Bardin a111635908 Fix panic in interpolate_walk
9 years ago
James Bardin 3c41a7ca1e Add test for Validate crash
9 years ago
James Bardin 2a949093ed report all errors from module validation
9 years ago
Mitchell Hashimoto b502643863 Merge pull request #12067 from hashicorp/b-backend-interp
9 years ago
John Murphy 628d46ac53 Fixed broken build for netbsd
9 years ago
Mitchell Hashimoto 6b4c007894
config: validate backend configuration can't contain interpolations
9 years ago
Kit Ewbank 549cff56d0 Add 'slice' interpolation function. (#9729)
9 years ago
Mitchell Hashimoto b6bfc4798d
config: Resource.Count should type check
9 years ago
Mitchell Hashimoto cf46e1c3e0
terraform: don't validate computed values in validate
9 years ago
Mitchell Hashimoto 7b342100d0
config: add "backend" loading to the Terraform section
9 years ago
Mitchell Hashimoto 928fce71f7
config: parse "when" and "on_failure" on provisioners
9 years ago
Jake Champlin 0b73b92830
core: Add pathexpand interpolation function
9 years ago
Mitchell Hashimoto 095b7e7831
config/module: disallow root modules named "root"
9 years ago
Mitchell Hashimoto 0c30caec7d
config: smarter provider alias usage validation
9 years ago
Mitchell Hashimoto c2c5668a8d
config: Append supports `terraform`
9 years ago
Mitchell Hashimoto 3878b8b093
config: Merge respects Terraform blocks, provider aliases, and more
9 years ago
Mitchell Hashimoto 8a102799c2 Merge pull request #10658 from hashicorp/b-var-keys
9 years ago
Mitchell Hashimoto 3ba9720b3e
config: validate invalid variable keys
9 years ago
Mitchell Hashimoto 5d684b399c
config: error when loading multiple lifecycle blocks
9 years ago
Mitchell Hashimoto b5f1738e17
config: allow IDs to start with numbers
10 years ago
Mitchell Hashimoto 8b9e2c17cc
config: fix NameRegexp validation to allow single-char names
10 years ago
Mitchell Hashimoto 6b458160b9
config: disallow names starting with ints
10 years ago
Mitchell Hashimoto 14b371d533
config: validate that RawConfig.Copy doesn't copy the interpolated
10 years ago
Mitchell Hashimoto 692eadd763
config: nitpicks from #10475
10 years ago
Jake Champlin 1f33952330
Add the timestamp interpolation function.
10 years ago
Mitchell Hashimoto 3665fea2db
config: validate that data sources don't have provisioners
10 years ago
Mitchell Hashimoto 9cc52d83de
config: test that null characters show up as errors in parse
10 years ago
Martin Atkins 399542a168 core: allow outputs to have descriptions (#9722)
10 years ago
Mitchell Hashimoto b3f80b9469
config: maintain slice index accounting for computed keys
10 years ago
Mitchell Hashimoto 25d19ef3d0 Merge pull request #10080 from hashicorp/f-tf-version
10 years ago
Mitchell Hashimoto df34fa88ce Merge pull request #10076 from hashicorp/f-depend-module
10 years ago
Mitchell Hashimoto e3a01ccfd8 Merge pull request #10072 from hashicorp/f-output-depends-on
10 years ago
Mitchell Hashimoto 15979435d6
config: update error string for new HIL merge
10 years ago
Mitchell Hashimoto 85d3439fa0
config: parse and validate terraform.required_version
10 years ago
Mitchell Hashimoto 576b61a21d
config: validate depends_on with module values
10 years ago
Mitchell Hashimoto 10426ba619
config: parse depends_on for outputs
10 years ago
Mitchell Hashimoto 5107c33119
command/import: load configurations and allow empty config dirs
10 years ago
Mitchell Hashimoto a8fbf3420c
config: clean up unused fucntions
10 years ago
Mitchell Hashimoto 2d656b484c
config: test that partial interpolation in a list works properly
10 years ago
Mitchell Hashimoto b979d8927e
config: use ast.TypeUnknown and don't remove computed values
10 years ago
Mitchell Hashimoto 260fb81373 Merge pull request #9795 from hashicorp/b-formatlist-empty
10 years ago
Mitchell Hashimoto 29287937e3 Merge pull request #9818 from hashicorp/b-var-parse
10 years ago
Mitchell Hashimoto ef3148bbfa
config: validate that outputs have a name
10 years ago
Mitchell Hashimoto f054c5ca2c
config: manually parse variable blocks for better validation
10 years ago
Mitchell Hashimoto d69b6257df
config: formatlist accepts an empty list
10 years ago
Raphael Randschau e97785c899 terraform/core: typo in RawConfig documentation (#9714)
10 years ago
Jesse Szwedko 0fbd72a355 Add some basic math interpolation functions
10 years ago
James Nugent 47bce79b29 core: Add zipmap interpolation function
10 years ago
Gustavo 5910e3b8af Adds ‘tittle’ built-in function. (#9087)
10 years ago
Mitchell Hashimoto 694b16de5d
config: ignore_changes cannot have interpolations
10 years ago
Mitchell Hashimoto fee0351c66
config: RawConfig merge should only set unknown keys non-nil if
10 years ago
Mitchell Hashimoto 5cd6898109
config: fix a conflicting test name
10 years ago
Mitchell Hashimoto dfa02e4412
terraform: rename attach config to only attach provider config
10 years ago
Mitchell Hashimoto 55ef966b88
config/module: tree.Child on a nil tree works
10 years ago
Mitchell Hashimoto 0fe51b334c Merge pull request #9334 from hashicorp/f-shadow-graph
10 years ago
Mitchell Hashimoto 30596ca371
terraform: sanity test (passes, always passed)
10 years ago
Mitchell Hashimoto 098225dc0d
config/module: use the raw source as part of the key
10 years ago
Mitchell Hashimoto 37c880c377
Update reflectwalk to fix failing tests
10 years ago
James Bardin e2b6ccad8a Failing test for GH-8820
10 years ago
Mitchell Hashimoto 609219fc65 command/meta: validate config immediately
10 years ago
James Bardin 94674fe93c Add a test load of a data source with count
10 years ago
James Bardin a3fc7e2e21 remove "count" while loading a data source
10 years ago
Sander van Harmelen 47dd1ad153 Add wildcard (match all) support to ignore_changes (#8599)
10 years ago
James Bardin 14138fc449 Add test for RawMap
10 years ago
James Bardin 632c16c212 Fix inconsistent results with self interpolation
10 years ago
Mitchell Hashimoto 706b2e2aea Merge pull request #8482 from hashicorp/b-output-dup
10 years ago
Mitchell Hashimoto 0fceeaaeb0
config: test for var uniqueness in overrides
10 years ago
Mitchell Hashimoto 4e7f2dd01e Merge pull request #8398 from hashicorp/b-module-collide
10 years ago
Mitchell Hashimoto 8a3559560d
config: JSON resource keys with only one item load properly GH-5140
10 years ago
Mitchell Hashimoto fbf06e2a59
config: vars must be unique
10 years ago
Mitchell Hashimoto 099293b690
config: outputs must be unique
10 years ago
Mitchell Hashimoto 92336281a5
config/module: use source as part of key
10 years ago
Mitchell Hashimoto f4faf2274b
config: count can't be a SimpleVariable
10 years ago
James Bardin 81bb6b7264 Merge pull request #7905 from hashicorp/jbardin/merge
10 years ago
James Bardin 39bbbb8da6 Add merge interpolation function
10 years ago
James Bardin 1af7ee87a2 Silence log output when not verbose
10 years ago
James Bardin c9e1522103 Use HIL to limit concat to ast.TypeList
10 years ago
James Bardin c15c0eb0cb Disallow strings as arguments to concat
10 years ago
James Nugent 796ce7bdd7 build: Opt-in to building rather than opt-out
10 years ago
James Nugent b2d5b66508 Merge pull request #7880 from hashicorp/b-fix-freebsd
10 years ago
James Nugent 2eb00c9184 build: Fix errors in FreeBSD build
10 years ago
James Bardin 5802f76eaa Make all terraform package tests pass under -race
10 years ago
Paul Hinze 88030764ff
config: Audit all interpolation functions for list/map behavior
10 years ago
Paul Hinze 1425b34562
config: Add map() interpolation function
10 years ago
James Bardin 8dcbc0b0a0 Add concat to accept lists of lists and maps
10 years ago
James Bardin 2bd7cfd5fe Expand list interpolation to lists and maps
10 years ago
James Nugent 58dd41f3b1 core: Add list() interpolation function
10 years ago
James Nugent c6e03cba96 core: Fix slice element keys on interpolateWalk
10 years ago
James Bardin e78dc291af Add test to ensure key/values interp order
10 years ago
James Nugent 8284b79957 Merge pull request #7298 from hashicorp/jbardin/GH-7273-fixup
10 years ago
James Nugent 8403a465bc core: Add test and fix for element with empty list
10 years ago
James Bardin 525485c213 Add proper build constraints for GH-7273
10 years ago
James Bardin 558e023e26 Don't try to copy files over themselves
10 years ago
James Nugent 9d6c629689 config: Update test to reflect new behaviour
10 years ago
James Nugent 4b6a632246 core: Rename uniq -> distinct and add docs
10 years ago
Jan Schumann df3e017f6c fix #7106
10 years ago
Paul Hinze 9bc980f569
core: Fix panic on concat() w/ list of nonprimitives
10 years ago
Paul Hinze ffa29090ec
core: Better error for dot indexing on user vars
10 years ago
James Nugent 01cd596c60 core: Fix detection of empty list/map defaults
10 years ago
James Nugent 578ff9569e core: Add sort() interpolation function
10 years ago
James Nugent cb9ef298f3 core: Defeat backward compatibilty in mapstructure
10 years ago
David Adams b5d1279107 Allow specifying a default value to lookup()
10 years ago
David Glasser 594ea105d8 config: support lists and maps in jsonencode
10 years ago
Martin Atkins 60c24e3319 command: Prevent data resources from being tainted
10 years ago
Martin Atkins 718cdda77b config: Parsing of data.TYPE.NAME.FIELD variables
10 years ago
Martin Atkins 860140074f config: Data source loading
10 years ago
Martin Atkins fc4fa10981 config: "ResourceMode" concept for resources
10 years ago
Mitchell Hashimoto 27452f0043
terraform: Module option to Import to add module to graph
10 years ago
Mitchell Hashimoto 3c9a92e04a
command: Context buliding allows empty module trees
10 years ago
James Nugent f1d0fc46aa core: Fix go vet issues shown by Travis
10 years ago
James Nugent 244da895cd core: Remove StringList
10 years ago
James Nugent f49583d25a core: support native list variables in config
10 years ago
James Nugent e57a399d71 core: Use native HIL maps instead of flatmaps
10 years ago
James Nugent b62f6af158 core: Add support for marking outputs as sensitive (#6559)
10 years ago
James Nugent a0cc7115b3 deps: Update call sites of hil.Eval from update
10 years ago
James Nugent d7d39702c0 Type check variables between modules (#6185)
10 years ago
David Glasser 6cf06bb3ab config: new interpolation function jsonencode
10 years ago
Paul Hinze 293c6ca68c Revert "Revert "core: Add uuid() interpolate function.""
10 years ago
Paul Hinze 567a9b9e06 config: remove missing equals test to fix build
10 years ago
James Nugent 87550b2b72 Merge pull request #5263 from uber/b-element-negative
10 years ago
Paul Hinze 661be01d9b Revert "core: Add uuid() interpolate function."
10 years ago
Paul Hinze 1e0b8ea478 core: Add uuid() interpolate function.
10 years ago
Radek Simko 664ba5f5a6 config: Add new interpolation function - md5
10 years ago
Radek Simko 573d3bd7ab config: Sort functions mapping alphabetically
10 years ago
Bill Fumerola c0034e672b Error out on negative indices in element()
10 years ago
Jeff Zohrab 33d30761dd Add hint to download modules for new users.
10 years ago
Paul Hinze 9a00675262 Merge pull request #5026 from hashicorp/phinze/destroy-node-copies
10 years ago
Paul Hinze 3f72837f4b core: Make copies when creating destroy nodes
10 years ago
Radek Simko 4edf782260 Merge pull request #4854 from jfromaniello/add_signum_interpolation
10 years ago
Mitchell Hashimoto 5f3de02fa9 remove config/lang, use hashicorp/hil
10 years ago
Radek Simko ecedcd0032 config: Add base64sha256() function
10 years ago
Colin Hebert 61a40dce13 Update the test file
10 years ago
Colin Hebert d92d205dd9 rename trim to trimspace
10 years ago
Colin Hebert d45b7b2ddc Fix name from strip to trim
10 years ago
Colin Hebert f5074cd521 Add the trim() interpolation function
10 years ago
José F. Romaniello c8795b8565 Add signum interpolation function
10 years ago
James Nugent 3bdd1ac8b3 core: Display invalid type in error message
10 years ago
James Nugent cb6cb8b96a core: Support explicit variable type declaration
10 years ago
Paul Hinze 87a9701f91 config: validation error when output is missing value field
10 years ago
Paul Hinze 47b521ebaf Merge pull request #4745 from hashicorp/b-lifecycle-keys
10 years ago
Paul Hinze 911575b7d6 Merge pull request #4747 from hashicorp/b-escaped
10 years ago
Mitchell Hashimoto 693736b52a config: fix tests
10 years ago
Mitchell Hashimoto f223be15cd config: eval HEL as long as the result changes [GH-2909]
10 years ago
Mitchell Hashimoto 8e7b0d90e3 config: detect provisioner-only resource in JSON and error [GH-4385]
10 years ago
Mitchell Hashimoto 99fbb91ba2 config: validate lifecycle keys [GH-4413]
10 years ago
Matt Moyer c17a6ceb2a Add a sha256(...) interpolation function.
10 years ago
Paul Hinze 0739cf2348 provider/template: fix race causing panic in template_file
10 years ago
Joseph Kordish e1b62c76ad add sha1 interpolation
10 years ago
Jesse Szwedko 41f9ebc667 Add support for unary operators + and -
10 years ago
Paul Hinze b6626eed57 config: friendlier error message on resource arity mismatch
11 years ago
James Nugent 5ea25363a1 Add regression test for #4069
11 years ago
Paul Hinze d90eb2d88e config: test replicating #4079
11 years ago
James Nugent 7f5f8d300d Add failing test replicating #4065
11 years ago
Paul Hinze afb5136ac2 Merge pull request #3986 from hashicorp/phinze/hcl-escaped-quotes
11 years ago
Paul Hinze 15e7927009 config: test covering escaped quotes syntax error
11 years ago
James Nugent 6ae3218f8a Add failing tests for JSON configuration parsing
11 years ago
Paul Hinze 928f534cfc template_file: source contents instead of path
11 years ago
James Nugent f4164b5322 Add resource with heredoc to config load tests
11 years ago
Mitchell Hashimoto deb17b90eb Merge pull request #3813 from hashicorp/b-new-hcl
11 years ago
Martin Atkins 988baa584b Merge #3814: 'coalesce' interpolation func
11 years ago
James Nugent f4c03ec2a6 Reflect new comment format in stringer.go
11 years ago
Matt Morrison 6ecec7fe83 Add coalesce func
11 years ago
Mitchell Hashimoto 13c5fdb154 config: remove debug line
11 years ago
Mitchell Hashimoto 02f512d4bd config: new HCL API
11 years ago
Paul Hinze c56245ce34 Merge pull request #2973 from bobtfish/length_empty_split_zero
11 years ago
Paul Hinze af04321723 config: return to the go1.5 generated lang/y.go
11 years ago
Tomas Doran 96275ee66a Add an explicit test for PR #2973
11 years ago
Martin Atkins ef161e1c1b Various interpolation functions for CIDR range manipulation.
11 years ago
Matt Morrison cccc5d03e3 Add lower / upper interpolation functions
11 years ago
Paul Hinze 77847b1572 config/lang: restore go1.4.3 generated code
11 years ago
Mitchell Hashimoto 344e7c26b5 fix a bunch of tests from go-getter import
11 years ago
Mitchell Hashimoto 06f4ac8166 config/module: use go-getter
11 years ago
Rob Zienert a1939e70f7 Adding ignore_changes lifecycle meta property
11 years ago
Martin Atkins 3c939f9b26 Merge #3239: "compact" interpolation function
11 years ago
Martin Atkins 16b11e443d go fmt the "compact" function changes.
11 years ago
Svend Sorensen 73b51698ad Replace simple case with if
11 years ago
Svend Sorensen 8e4a313f17 Return an empty slice for empty string lists
11 years ago
Svend Sorensen 53f44878ff Add tests for empty string lists
11 years ago
Anthony Stanton f2f4ded970 Initialize list as an empty slice
11 years ago
Panagiotis Moustafellos e4845f75cc removed extra parentheses
11 years ago
Anthony Stanton aed3f98703 Rename func which is now a method.
11 years ago
Anthony Stanton 95b2a60b29 Use {a,b} instead of {b,c}
11 years ago
Anthony Stanton ef2b0a0b71 Order functions alphabetically
11 years ago
Anthony Stanton 735803ef09 Test cases for compact()
11 years ago
Anthony Stanton 7610874264 Initial implementation of compact() interpolation function
11 years ago
Martin Atkins 3fde993978 Merge #3336: Remove local multierror package.
11 years ago
Martin Atkins 0b85d35e87 Rename base64enc/dec to encode/decode.
11 years ago
Sander van Harmelen 2ba8dc38fa Switch to go-multierror
11 years ago
Gorka Lerchundi Osa 70522fb770 implements base64{enc,dec} interpolation funcs
11 years ago
Anthony Scalisi 198e1a5186 remove various typos
11 years ago
Radek Simko 563fd3872b Add a few tests for string_list
11 years ago
Jason Gedge cf5926ddad Add a function to find the index of an element in a list.
11 years ago
Mitchell Hashimoto 89d44e5088 Merge pull request #2505 from hashicorp/b-var-splat
11 years ago
Mitchell Hashimoto 97d2c4a6de config/lang: don't see * as part of var name [GH-2046]
11 years ago
Paul Hinze c95f21cec1 config: make formatlist work on lists of length 1
11 years ago
Paul Hinze e88aeede9b core: allow distinguishing between empty lists and strings
11 years ago
Paul Hinze 7238b3b4af core: encapsulate representation of StringList
11 years ago
Paul Hinze 10b3abf405 config: introduce StringList to abstract over list hack
11 years ago
Mitchell Hashimoto 29eadb8194 terraform: missing provider should add missing aliases [GH-2023]
11 years ago
Mitchell Hashimoto 461f6557c7 config: fix test error
11 years ago
Mitchell Hashimoto fafc32b183 Merge branch 'b-prevent-destroy-type'
11 years ago
Paul Hinze c154ef9558 Merge pull request #1790 from TimeIncOSS/combine-func
11 years ago
Sander van Harmelen c62370f9e9 Add a function to load JSON directly
11 years ago
Radek Simko 6a60fa4bfe config: concat function supports lists (combines more lists into one)
11 years ago
Radek Simko e9e41dfd05 Improve test error messages
11 years ago
Radek Simko 841a1f08da Sort functions by name alphabetically
11 years ago
Mitchell Hashimoto aa1e66c16c config: parse lifecycle block with mapstructure for weak decode
11 years ago
Paul Hinze b781c6c446 core: keys() and values() funcs for map variables
11 years ago
Sam Boyer b82bd0c280 Condense switch fallthroughs into expr lists
11 years ago
Josh Bleecher Snyder 02e751e356 config: add formatlist
11 years ago
Josh Bleecher Snyder a3f79cd790 config: fix minor comment errors
11 years ago
Mitchell Hashimoto 1099e3f59f config: add module raw configs to InterpolatedConfigs [GH-1448]
11 years ago
Mitchell Hashimoto cca4964552 config: error in validation if module has self variable
11 years ago
Mitchell Hashimoto d0a6d78b97 config: test that resources reference good providers
11 years ago
Mitchell Hashimoto 8ee18e2e14 config: happy case test for multiple providers
11 years ago
Mitchell Hashimoto a599d5f224 config: validate that a multi provider is only configured once each
11 years ago
Matt Good 21b0a03d70 Support for multiple providers of the same type
11 years ago
Paul Hinze afe4abb637 core: add prevent_destroy lifecycle flag
11 years ago
Paul Hinze 5874fa06ff Merge pull request #1495 from TimeIncOSS/length-func
11 years ago
Paul Hinze 975a96f271 core: protect against count.index in modules
11 years ago
Paul Hinze 347690a73e core: don't crash when count.index is used in the wrong context
11 years ago
Radek Simko 6a720d087c length added to built-in functions
11 years ago
Mitchell Hashimoto 0ff39a3773 config/lang: support math on variables through implicits
11 years ago
Radek Simko 8eb6984a89 Test helpers to print expected output
11 years ago
Mitchell Hashimoto 6514bf5f25 config: clarify unknown variable error [GH-1480]
11 years ago
Mitchell Hashimoto 06beab6fd8 config: copy the key on Copy
11 years ago
Mitchell Hashimoto b201983304 terraform: copy RawConfigs
11 years ago
Mitchell Hashimoto aab7bc0da5 config/module: rename parameters
11 years ago
Mitchell Hashimoto 2378160803 config/module: determine storage folder by path
11 years ago
Mitchell Hashimoto f084d8d932 config/module: store the path with the module
11 years ago
Paul Hinze 766b4902d4 remove extraneous var declaration
11 years ago
7heo a6411626bf config: interprets '~' as the current user home dir in file()
11 years ago
Mitchell Hashimoto 44fce5ce60 config/module: remove debug
11 years ago
Mitchell Hashimoto 2e11ca68df config/module: go back to the original folder when doing parent
11 years ago