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
Mitchell Hashimoto
14b29d0ecd
config: LoadDir
2014-07-11 20:15:09 -07:00
Mitchell Hashimoto
e250a6f36c
config: understand "provisioner" blocks
2014-07-10 11:38:55 -07:00
Mitchell Hashimoto
aa6a758f6b
config: if count > 1, variable references must have index
...
/cc @pearkes - Here is that validation
2014-07-06 13:46:56 -07:00
Mitchell Hashimoto
ed1860de61
config: validate output only has "value" field
2014-07-04 10:57:09 -07:00
Mitchell Hashimoto
a4f38a3933
config: validate resource variables in output
2014-07-04 10:53:36 -07:00
Mitchell Hashimoto
cc2bb950a1
config: can parse outputs
2014-07-04 10:43:06 -07:00
Mitchell Hashimoto
5e79ddf7c6
config: detect variables in form of resource.name.*.blah
2014-07-03 20:41:26 -07:00
Mitchell Hashimoto
3337a625af
config: support count meta-parameter
2014-07-03 20:11:58 -07:00
Mitchell Hashimoto
78e056770c
config: validate that resource references are valid
2014-07-02 21:06:26 -07:00
Mitchell Hashimoto
532cc33189
config: semantic check on variable references
2014-07-02 21:01:03 -07:00
Mitchell Hashimoto
e50425b182
config: style
2014-07-02 12:04:37 -07:00
Mitchell Hashimoto
7ab7ce17d9
config: tests passing for bug @pearkes found
2014-07-02 09:11:31 -07:00
Jack Pearkes
d84c5fb015
config: fix libucl in test case (still failing)
2014-07-01 21:18:01 -07:00
Jack Pearkes
bef1495c96
config: add failing test case for nested objects
2014-07-01 21:16:47 -07:00
Mitchell Hashimoto
46d3800a39
config: remove some unused test fixtures
2014-06-24 15:02:02 -07:00
Mitchell Hashimoto
867f6b3691
config: test to make sure that cycles are properly detected
2014-06-05 12:53:59 -07:00
Mitchell Hashimoto
3ccfd4d08c
config: depgraph can contain provider configuratoins
2014-06-05 12:47:28 -07:00
Mitchell Hashimoto
0008ff12c7
config: determine whether a variable is required properly
2014-06-03 15:55:51 -07:00
Mitchell Hashimoto
9895f8162f
config: unix line endings in tests
2014-05-30 17:38:35 -07:00
Mitchell Hashimoto
ab507814b7
config: support for provider configs
2014-05-25 18:05:18 -07:00
Mitchell Hashimoto
81bfa8970a
config: make the tests a bit more intense
2014-05-24 14:02:49 -07:00
Mitchell Hashimoto
dac18c823a
config: can generate depgraph
2014-05-24 13:57:51 -07:00
Mitchell Hashimoto
6983a0414a
config: fix line endings on a test fixture
2014-05-24 11:44:48 -07:00
Mitchell Hashimoto
95ef186bf8
config: can detect variables in config strings
2014-05-23 21:58:06 -07:00
Mitchell Hashimoto
50830e429a
config: merge resources
2014-05-23 16:25:54 -07:00
Mitchell Hashimoto
aadb24aa08
config: error if unknown filetype
2014-05-23 15:42:29 -07:00
Mitchell Hashimoto
2ffee2a142
config: imports are relative to tf
2014-05-23 15:11:57 -07:00
Mitchell Hashimoto
ec3f72703c
Initial work on config
2014-05-22 16:56:28 -07:00