Mitchell Hashimoto
a31f2a276b
Merge pull request #1015 from hashicorp/b-depends-on-var
...
config: depends on cannot contain interpolations [GH-985]
2015-02-23 13:49:34 -08:00
Mitchell Hashimoto
c14e84a657
config: validate provisioner splats can only reference others
2015-02-20 09:21:29 -08:00
Mitchell Hashimoto
f156d0d1bd
config: test we can ref splat of other resources
2015-02-20 09:19:13 -08:00
Mitchell Hashimoto
90a6a627ed
config: validate configuration doens't contain splats to ourselves
2015-02-20 09:18:08 -08:00
Mitchell Hashimoto
0e7b150c5b
config: depends on cannot contain interpolations [GH-985]
2015-02-20 09:07:41 -08:00
Mitchell Hashimoto
4bcf6cf6b2
config: bare splat variables should not be allowed in provisioners
...
[GH-636]
2015-02-17 13:32:45 -08:00
Mitchell Hashimoto
91a3405e88
config: understand provisioner blocks in JSON [GH-807]
2015-01-16 10:14:48 -08:00
Mitchell Hashimoto
a2e40ad731
config: multi-variable access in slice validation fixed [GH-798]
2015-01-15 09:40:13 -08:00
Mitchell Hashimoto
d24082da1e
config: validate that module variables can go to ints, convert [GH-624]
2014-12-15 22:10:16 -08:00
Kushal Pisavadia
b40b7ce01a
Do not read temporary editor files, fixes #548
...
This fixes a bug where Terraform would error with the following:
```
Error loading config: Error reading
/Users/rhenrichs/work/example/.#example.tf: open
/Users/rhenrichs/work/example/.#example.tf: no such file or directory
```
The solution implemented here ignores the common emacs and vim
temporary file formats.
Note: the potential danger with merging this is that Terraform could
quickly have requests to ignore other file formats.
2014-12-09 13:15:00 +00:00
Mitchell Hashimoto
4cb1ea6ae1
config: allow exact multi-resource references outside slices
2014-10-11 17:20:39 -07:00
Mitchell Hashimoto
7b48924532
config: validate that multi-variables are only used in slices
2014-10-09 21:15:08 -07:00
Mitchell Hashimoto
67d9188a29
config: validate module names are valid
2014-10-08 16:03:22 -07:00
Mitchell Hashimoto
e922b16dba
Merge pull request #377 from hashicorp/f-path-var
...
Add ${path.X} variables for path referencing
2014-10-07 21:26:24 -07:00
Mitchell Hashimoto
c1fa4c2e4b
config: validate that module source can't contain interpolations
2014-10-07 20:19:32 -07:00
Mitchell Hashimoto
679ab1d515
config: parse ${path.module}
2014-10-07 18:03:11 -07:00
Mitchell Hashimoto
2e63a69e57
config: validate good count variables
2014-10-02 18:25:18 -07:00
Mitchell Hashimoto
b484ec19b6
config: validate that count vars are valid types
2014-10-02 18:24:37 -07:00
Mitchell Hashimoto
bc26777963
config: count can't interpolate count variables
2014-10-02 18:22:32 -07:00
Mitchell Hashimoto
dd14303022
config: validate that count is an int
2014-10-02 16:51:20 -07:00
Mitchell Hashimoto
5090678168
config: validate that only proper variables can be in the count
2014-10-02 16:30:46 -07:00
Mitchell Hashimoto
101ac636a2
config: add Config method
2014-10-02 11:34:08 -07:00
Mitchell Hashimoto
f772c11103
config: validate unknown var in count
2014-10-02 11:18:57 -07:00
Armon Dadgar
1aaddafba0
terraform: Adding lifecycle config block
2014-09-29 15:20:02 -07:00
Armon Dadgar
a14ea76c84
config: Support create_before_destroy config
2014-09-29 15:18:49 -07:00
Mitchell Hashimoto
b60da29d48
config: validate that variables reference valid modules
2014-09-15 11:45:41 -07:00
Mitchell Hashimoto
4fdb6d1b52
config: add test for empty file
2014-09-15 09:41:00 -07:00
Mitchell Hashimoto
8dc8eac4bf
config: change module syntax
2014-09-14 14:43:54 -07:00
Mitchell Hashimoto
610e92cab2
config: validate no duplicate modules
2014-09-11 16:02:36 -07:00
Mitchell Hashimoto
2a6990e2b9
config: `module` structures parse
2014-09-11 15:58:30 -07:00
Mitchell Hashimoto
21472e98b8
config: unit tests for lexer
2014-09-09 14:34:03 -07:00
Mitchell Hashimoto
038cca291e
config: HCL loader
2014-08-11 09:58:53 -07:00
Mitchell Hashimoto
fe2a306341
config: validate no interp in var [GH-180]
2014-08-11 09:46:56 -07:00
Mitchell Hashimoto
d28e5a1638
dos2unix
2014-07-28 10:43:00 -07:00
Mitchell Hashimoto
f9f4e62411
config: validate that count is >= 1
2014-07-26 14:49:55 -07:00
Mitchell Hashimoto
fa175113fe
config: case sensitive templates
2014-07-23 08:38:43 -07:00
Mitchell Hashimoto
20da842bcf
config: validate dependsOn
2014-07-22 17:16:48 -07:00
Mitchell Hashimoto
0699cde1d4
config: depends_on meta-parameter
2014-07-22 17:10:17 -07:00
Mitchell Hashimoto
b10b678326
config: fix error message in validation
2014-07-22 08:47:10 -07:00
Mitchell Hashimoto
b8a0a02217
config: TODO tests for validation
2014-07-21 08:34:44 -07:00
Mitchell Hashimoto
e396b8f3d9
config: test that multiple overrides work
2014-07-20 17:56:02 -07:00
Mitchell Hashimoto
06cdd4fa42
config: LoadDir loads override files
2014-07-20 17:52:46 -07:00
Mitchell Hashimoto
cf1f3a9e73
config: test that LoadDir doesn't merge
2014-07-19 16:44:23 -07:00
Mitchell Hashimoto
9cd1018f0b
config: config files can be in JSON, as well
2014-07-18 16:54:52 -07:00
Mitchell Hashimoto
50095612a2
config: resource should be unique
2014-07-18 16:31:01 -07:00
Mitchell Hashimoto
5329124cf9
config: unknown keys give errors
2014-07-18 16:00:21 -07:00
Armon Dadgar
2f2f5890f4
config: Testing loading of connection blocks
2014-07-15 12:34:06 -07:00
Mitchell Hashimoto
7a01e781ab
config: LoadDir with no matching files errors
2014-07-11 21:04:59 -07:00
Mitchell Hashimoto
6dfebcae69
config: test that we only load tf files
2014-07-11 20:17:25 -07:00
Mitchell Hashimoto
8655711a3f
config: test that LoadDir doesn't load nested
2014-07-11 20:16:49 -07:00