Commit Graph

515 Commits

Author SHA1 Message Date
Armon Dadgar
5e0765c24a terraform: Refresh handles tainted instances 2014-09-19 16:24:17 -07:00
Armon Dadgar
1d96373a54 terraform: deepcopy should not alloc when nil 2014-09-19 16:15:52 -07:00
Armon Dadgar
8e421caba1 terraform: show each tainted ID 2014-09-19 15:04:21 -07:00
Armon Dadgar
ff42a92636 terraform: State string includes how many resources are tainted 2014-09-19 14:55:59 -07:00
Armon Dadgar
9594ed6e1c terraform: minor cleanup 2014-09-19 14:54:21 -07:00
Armon Dadgar
a1c4a27715 terraform: Drop useless field 2014-09-19 14:45:12 -07:00
Armon Dadgar
5ef46b797b terraform: fixing dependency handling for orphans 2014-09-18 15:39:53 -07:00
Armon Dadgar
b2188d7fe8 terraform: properly handle diff generation with meta resources 2014-09-18 14:31:27 -07:00
Armon Dadgar
68614aeb79 terraform: Guard against future version changes 2014-09-18 13:43:26 -07:00
Armon Dadgar
ec4be66f63 terraform: ensure file version is set and serial incremented 2014-09-18 13:38:36 -07:00
Armon Dadgar
3b7c987889 terraform: EncodeDepedencies should override dep list 2014-09-18 13:33:05 -07:00
Armon Dadgar
a9c4b523db terraform: Encode dependencies of ResourceMeta ndoes 2014-09-18 11:22:40 -07:00
Armon Dadgar
d61f199d6f terraform: test dependency encoding 2014-09-18 11:12:39 -07:00
Armon Dadgar
364d210e59 terraform: fixing destroy dependency flipping twice 2014-09-18 11:02:14 -07:00
Armon Dadgar
5adc55415b terraform: testing new state file format 2014-09-18 10:51:47 -07:00
Mitchell Hashimoto
15564b04a5 command: tests pass 2014-09-18 10:40:35 -07:00
Armon Dadgar
1dcdd7a336 terraform: moving state v1 tests 2014-09-18 10:21:25 -07:00
Armon Dadgar
4db7282072 terraform: first pass at state file upgrades 2014-09-17 18:24:53 -07:00
Armon Dadgar
18a91a87c9 terraform: first stab at read/write of state 2014-09-17 18:13:38 -07:00
Armon Dadgar
ed26e3d169 terraform: fixing test case string 2014-09-17 18:03:19 -07:00
Armon Dadgar
9c5f2c3061 terraform: EncodeDependencies does not encode self dependence 2014-09-17 17:57:46 -07:00
Mitchell Hashimoto
7a2591190b terraform: fix graph test 2014-09-17 17:52:24 -07:00
Armon Dadgar
17821f2b00 terraform: fixing more test cases 2014-09-17 17:45:38 -07:00
Armon Dadgar
d4e2e66666 terraform: fixing provisioner tests 2014-09-17 17:42:43 -07:00
Armon Dadgar
9a0fe0171e terraform: fixing ContextApply_compute test 2014-09-17 17:40:59 -07:00
Armon Dadgar
dc01633f3c terraform: fixing outputs for destroy plan 2014-09-17 17:35:43 -07:00
Armon Dadgar
af3c55096c terraform: handle logical dependencies during a delete 2014-09-17 17:30:25 -07:00
Armon Dadgar
cb8e581731 terraform: test creates an actual logical dependence 2014-09-17 17:30:25 -07:00
Mitchell Hashimoto
9aa8bec660 terraform: update comments 2014-09-17 17:23:19 -07:00
Mitchell Hashimoto
1aff5e98e1 terraform: some deepcopying going on 2014-09-17 17:18:17 -07:00
Armon Dadgar
c14a17f39b terraform: save/restore dependency info for orphans 2014-09-17 17:01:55 -07:00
Armon Dadgar
31653fcbcb terraform: Adding utility methods 2014-09-17 17:01:55 -07:00
Armon Dadgar
bf072c5862 terraform: reorder list scan to reduce cost 2014-09-17 17:01:54 -07:00
Mitchell Hashimoto
f9ce7de468 terraform: Refresh tests passing 2014-09-17 16:51:07 -07:00
Mitchell Hashimoto
e2aa067996 terraform: fixing Refresh tests 2014-09-17 16:47:26 -07:00
Mitchell Hashimoto
9b2b3a963f ResourceDiff => InstanceDiff 2014-09-17 16:33:24 -07:00
Mitchell Hashimoto
0a6c675fba terraform: update hooks to use InstanceState 2014-09-17 15:00:19 -07:00
Armon Dadgar
71782c57b3 terraform: emit ID of tainted resource in string 2014-09-16 17:37:39 -07:00
Armon Dadgar
edccc2de3f terraform: fixing provisioner invocation 2014-09-16 17:37:39 -07:00
Armon Dadgar
4a736b0dac terraform: Fixing panics and TODOs 2014-09-16 17:19:37 -07:00
Armon Dadgar
55f4e35586 terraform: Fixing applyWalkFn 2014-09-16 17:10:41 -07:00
Armon Dadgar
81abdcafdc terraform: fixing all the panics 2014-09-16 16:55:19 -07:00
Armon Dadgar
25a3cc480c terraform: fixing tons of panics 2014-09-16 16:32:01 -07:00
Mitchell Hashimoto
95f3e626a5 terraform: modify the ResourceProvider API super hardcore 2014-09-16 16:20:11 -07:00
Armon Dadgar
4b0f970659 terraform: fixing test errors 2014-09-16 15:09:40 -07:00
Armon Dadgar
196991430b terraform: Resolving more errors 2014-09-16 14:26:27 -07:00
Armon Dadgar
3404277f31 terraform: porting to new state 2014-09-16 12:34:21 -07:00
Armon Dadgar
04a2b5288b terraform: fixing errors 2014-09-16 12:34:08 -07:00
Armon Dadgar
f4678c8fcd terraform: Fixing type references 2014-09-16 12:33:45 -07:00
Armon Dadgar
3963b42625 terraform: Fixing up context 2014-09-16 12:12:15 -07:00
Armon Dadgar
9cbd71b88d terraform: Changing how instances are represented 2014-09-15 17:49:31 -07:00
Armon Dadgar
f5fc4933e5 terraform: working through errors 2014-09-15 17:30:18 -07:00
Armon Dadgar
a85d6fa6c3 terraform: Adding module lookups for state 2014-09-15 17:11:36 -07:00
Armon Dadgar
ab7ae0516c terraform: handle state pruning 2014-09-15 17:06:32 -07:00
Armon Dadgar
bb26c79421 terraform: Adding deepcopy() to new state 2014-09-15 16:08:13 -07:00
Armon Dadgar
6373b2b90b Renaming to suffix V1 to old state structs 2014-09-15 16:08:01 -07:00
Armon Dadgar
5dc37bafe6 Adding the new state structures 2014-09-15 15:31:17 -07:00
Mitchell Hashimoto
281b59533d fmt 2014-09-09 21:44:40 -07:00
Mitchell Hashimoto
9573d1bfec terraform: test to make sure nil in RawConfig is okay 2014-09-09 17:41:05 -07:00
Mitchell Hashimoto
a53faa2fff terraform: validate providers even without config block [GH-284] 2014-09-09 17:38:30 -07:00
Mitchell Hashimoto
52bc9a1055 core: check sets for computed [GH-247] 2014-08-30 17:26:10 -07:00
Mitchell Hashimoto
28a2e7b979 terraform: depends_on with count creates proper graph [GH-244] 2014-08-30 16:08:50 -07:00
Mitchell Hashimoto
da2e221628 terraform: Interpolate if there are any interpolations [GH-159] 2014-08-21 15:05:56 -07:00
Mitchell Hashimoto
9ecfdc350e terraform: ResourceConfig.Get doesn't panic if exceed list bounds
[GH-210]
2014-08-21 11:37:14 -07:00
Mitchell Hashimoto
6d6cd793e0 terraform: GoString for *ResourceState 2014-08-20 10:38:51 -07:00
Mitchell Hashimoto
839f9d84c8 Merge pull request #201 from hashicorp/f-resource
High-Level Framework for Writing Providers and Resources
2014-08-19 09:40:59 -07:00
Mitchell Hashimoto
808463a2d5 Merge pull request #200 from hashicorp/f-hcl
Replace C dep with HCL
2014-08-19 09:27:48 -07:00
Mitchell Hashimoto
776b5ace2e terraform: better comments 2014-08-19 09:05:50 -07:00
Mitchell Hashimoto
d8a999e5af terraform: ResourceConfig.Get gets interpolated if possible 2014-08-19 09:05:19 -07:00
Mitchell Hashimoto
22e286ffd5 helper/schema: diff-ing lists at a basic level 2014-08-14 23:17:53 -07:00
Mitchell Hashimoto
2e777d87a2 terraform: fix potential case where cycle is made 2014-08-12 17:08:12 -07:00
Mitchell Hashimoto
258a7311ce terraform: register a type 2014-08-11 09:58:53 -07:00
Mitchell Hashimoto
038cca291e config: HCL loader 2014-08-11 09:58:53 -07:00
Alex Gaynor
46154ca1d3 Fixed a ton of typos in docs and comments 2014-08-07 00:19:56 -07:00
Mitchell Hashimoto
c671e79904 fmt 2014-08-05 10:12:50 -07:00
Mitchell Hashimoto
87f4b49f85 terraform: multi-variables work with count = 1 [GH-115] 2014-08-05 10:12:35 -07:00
Mitchell Hashimoto
d28e5a1638 dos2unix 2014-07-28 10:43:00 -07:00
Mitchell Hashimoto
78c32ac196 terraform: hooks around provisioners 2014-07-27 09:00:34 -07:00
Mitchell Hashimoto
7564a0a21c terraform: set state properly when tainted 2014-07-26 21:03:07 -07:00
Mitchell Hashimoto
37c4edd5e7 terraform: test cases around self-referencing variables
This includes cases of multi-counts.

/cc @armon - Looks like this was a non-issue. Terraform already errors
on this.
2014-07-26 15:02:23 -07:00
Mitchell Hashimoto
a3639b6156 terraform: further tests around count edge cases, fix 1 => N case
/cc @pearkes

GH-35
2014-07-26 14:55:42 -07:00
Mitchell Hashimoto
79a9dfce4a terraform: add test for diff var changing 2014-07-24 20:24:59 -07:00
Armon Dadgar
0da10b813b terraform: fix dot output for meta resources 2014-07-24 18:57:47 -04:00
Mitchell Hashimoto
615cf04715 terraform: refresh returning nil should delete from state 2014-07-24 14:40:52 -07:00
Mitchell Hashimoto
86903eb18f terraform: fix issues with tainted marking 2014-07-24 08:49:54 -07:00
Mitchell Hashimoto
1ee69761d4 terraform: self-referencing variables in provisoiners work 2014-07-24 07:58:45 -07:00
Mitchell Hashimoto
b51d18f1de terraform: more logs 2014-07-24 07:30:24 -07:00
Mitchell Hashimoto
3acb7dc154 terraform: register another gob type we use 2014-07-24 07:30:23 -07:00
Mitchell Hashimoto
dc0ec11ec9 command: fix tests 2014-07-22 19:43:09 -07:00
Mitchell Hashimoto
7221e01110 terraform: unit test Same function on ResourceDiff 2014-07-22 19:39:48 -07:00
Mitchell Hashimoto
d5e3d5a196 terraform: validate diffs are the same 2014-07-22 19:33:09 -07:00
Mitchell Hashimoto
79eb52eba6 terraform: error if diff during Apply returns nil 2014-07-22 19:33:08 -07:00
Mitchell Hashimoto
f47956d62f terraform: dependsOn builds into the graph 2014-07-22 18:20:03 -07:00
Mitchell Hashimoto
10a86c6ef7 terraform: strict checks for state not being nil 2014-07-22 10:31:47 -07:00
Mitchell Hashimoto
14f7067b0c terraform: taint plan requires destroy/create 2014-07-22 10:30:42 -07:00
Mitchell Hashimoto
192fc1e544 terraform: mark resource as tainted if provisioning fails 2014-07-22 10:09:11 -07:00
Mitchell Hashimoto
808036bf60 terraform: ResourceProvisioner can't return a state anymore 2014-07-22 09:56:39 -07:00
Mitchell Hashimoto
b9f49b2f60 terraform: semantic check that variables are set on the correct types 2014-07-22 09:27:28 -07:00
Mitchell Hashimoto
e59ff6e92c terraform: fix tests 2014-07-22 08:29:49 -07:00
Mitchell Hashimoto
c6474b3e5c terraform: more test cases 2014-07-22 08:27:16 -07:00
Mitchell Hashimoto
fed0a89c36 terraform: comments 2014-07-22 08:21:11 -07:00
Mitchell Hashimoto
83ba038423 terraform: mapping overrides work 2014-07-22 08:18:53 -07:00
Mitchell Hashimoto
5795db9232 terraform: test regular variable default 2014-07-22 08:14:20 -07:00
Mitchell Hashimoto
c9a20c3c58 terraform: test that mapping lookups work 2014-07-22 08:06:09 -07:00
Mitchell Hashimoto
c6f049ffc6 terraform: add panic in impossible case 2014-07-19 16:07:09 -07:00
Mitchell Hashimoto
7bd7e4218f config: make ProviderConfigs slice 2014-07-19 16:05:48 -07:00
Mitchell Hashimoto
a19e2983de terraform: tests passing for Config change 2014-07-18 22:13:15 -07:00
Mitchell Hashimoto
3276ae313f terraform: PostApply should get error result from Apply 2014-07-17 15:38:50 -07:00
Mitchell Hashimoto
ff36378c4e terraform: partial state should be saved on apply error 2014-07-17 15:32:19 -07:00
Armon Dadgar
104b28e19e terraform: Remove ResourceConnectionInfo, use raw map 2014-07-15 12:34:07 -07:00
Armon Dadgar
fec8e95a09 terraform: Ensure ConnInfo is initialized 2014-07-15 12:34:07 -07:00
Armon Dadgar
0110640946 terraform: Test ConnInfo materialization during Apply 2014-07-15 12:34:07 -07:00
Armon Dadgar
eaf2c46dc5 terraform: Testing passthrough of ConnInfo 2014-07-15 12:34:06 -07:00
Armon Dadgar
94c95afa48 terraform: Passthrough provisioner level connection info 2014-07-15 12:34:06 -07:00
Mitchell Hashimoto
ad3c0593a3 terraform: GraphDot 2014-07-14 11:34:52 -07:00
Mitchell Hashimoto
3af16c8faf terraform: don't process outputs when all we did was destroy 2014-07-13 11:07:31 -07:00
Mitchell Hashimoto
4dea4c325b terraform: Context.Graph 2014-07-12 19:23:56 -07:00
Mitchell Hashimoto
1911ee215b terraform: plan read/write sets magic bytes so we can test format 2014-07-11 21:43:24 -07:00
Mitchell Hashimoto
539a6c244e terraform: Read/WriteState sets magic bytes 2014-07-11 21:42:09 -07:00
Mitchell Hashimoto
10d17c4d40 terraform: don't ever pass a nil diff into Apply 2014-07-11 20:20:08 -07:00
Mitchell Hashimoto
2ed77c8a6f terraform: remove output diffs attributes from the Apply call 2014-07-11 12:00:41 -07:00
Mitchell Hashimoto
8d065ce5c4 terraform: don't validate orphans 2014-07-11 11:09:19 -07:00
Mitchell Hashimoto
ac0e29e98e terraform: races in MockResourceProvider 2014-07-10 13:38:04 -07:00
Mitchell Hashimoto
9c9f478811 terraform: remove data race around validation 2014-07-10 13:36:06 -07:00
Mitchell Hashimoto
d9dda40957 Merge pull request #16 from hashicorp/f-provisioners
Adding support for provisioners
2014-07-10 13:03:51 -07:00
Armon Dadgar
3e608ee8b9 terraform: Do not persist sensitive state 2014-07-10 12:01:26 -07:00
Armon Dadgar
83c1ed438f terraform: Fix and test provisioner configs 2014-07-10 11:38:57 -07:00
Armon Dadgar
c8bc5658ab terraform: Test that validate gets a config for provisioners 2014-07-10 11:38:57 -07:00
Armon Dadgar
2423d135ac terraform: Move the config initialization of provisioners 2014-07-10 11:38:57 -07:00
Armon Dadgar
cfc7b69bb1 terraform: Test provisioner apply 2014-07-10 11:38:56 -07:00
Armon Dadgar
03a20f072e terraform: Test Validation of provisioners 2014-07-10 11:38:56 -07:00
Armon Dadgar
87c3423fd4 terrform: Thread provisioner factory through Context 2014-07-10 11:38:56 -07:00
Armon Dadgar
ee475e8178 terraform: Apply and Validate provisioners when walking 2014-07-10 11:38:56 -07:00
Armon Dadgar
e8245f1a67 terraform: Testing graph construction with provisioners 2014-07-10 11:38:56 -07:00
Armon Dadgar
975ff45149 terraform: Adding mock resource provisioner 2014-07-10 11:38:56 -07:00
Armon Dadgar
9fc6413775 terraform: Ignore orphans in provisioner setup 2014-07-10 11:38:56 -07:00
Armon Dadgar
8901a6753b terraform: Handle setup of providers in graph construction 2014-07-10 11:38:56 -07:00
Armon Dadgar
b2758666eb terraform: Store resource config along side provisioner 2014-07-10 11:38:55 -07:00
Armon Dadgar
55124b9e28 terraform: Adding provisioners to a resource 2014-07-10 11:38:55 -07:00
Armon Dadgar
d46ca67f92 terraform: Adding resource provisioner interface 2014-07-10 11:38:55 -07:00
Armon Dadgar
5a5f1df115 terraform: Adding ResourceConnectionInfo 2014-07-10 11:38:55 -07:00
Mitchell Hashimoto
3e4bdb5584 terraform: fix more cases where nil access can happen 2014-07-10 11:13:17 -07:00
Mitchell Hashimoto
3a79a1ca1a terraform: add ResourceProviderFactoryFixed 2014-07-10 09:46:21 -07:00
Mitchell Hashimoto
cb52983c84 terraform: MergeDiff removes removed attributes in diff 2014-07-09 10:04:14 -07:00
Mitchell Hashimoto
96e09440d4 helper/diff: mark removed keys as removed 2014-07-09 09:51:36 -07:00
Mitchell Hashimoto
eda3cb009c terraform: make sure the "id" attribute is in the state 2014-07-08 17:15:41 -07:00
Mitchell Hashimoto
611e0668e7 terraform: remove debugging 2014-07-08 17:03:25 -07:00
Mitchell Hashimoto
251790f05a terraform: add ID to diff implicitly 2014-07-08 16:58:31 -07:00
Mitchell Hashimoto
d0dc045282 terraform: make sure the config is initialized 2014-07-08 16:17:29 -07:00
Armon Dadgar
8f4cd641df terraform: minimal apply test case 2014-07-08 16:12:30 -07:00
Mitchell Hashimoto
d83e687865 terraform: TODO the checksum struct 2014-07-08 14:51:51 -07:00
Mitchell Hashimoto
3318fe97dc terraform: ContextOpts can set a max parallelism 2014-07-08 11:42:03 -07:00
Mitchell Hashimoto
6a7e3668a2 command: apply saves state even if error occurs 2014-07-07 21:20:48 -07:00
Mitchell Hashimoto
5263306f1f terraform: more logging 2014-07-07 21:12:21 -07:00
Mitchell Hashimoto
b0a83adea4 terraform: manually interpolate variables in walker functions
This avoids issues where we were interpolating when we didn't need to
2014-07-07 16:56:23 -07:00
Mitchell Hashimoto
c96886edce terraform: Refresh should work on Context state 2014-07-07 16:22:09 -07:00
Mitchell Hashimoto
38b3734d12 terraform: don't refresh resources that aren't created 2014-07-07 16:19:25 -07:00
Mitchell Hashimoto
9f56fc8ddc terraform: copy the proper dependencies over on destroy plan 2014-07-07 15:43:32 -07:00
Mitchell Hashimoto
55eb06929e terraform: fix cycle that could happen during destroy 2014-07-07 15:38:27 -07:00
Mitchell Hashimoto
b80e8364d0 terraform: fix potential nil access on graph 2014-07-07 15:38:25 -07:00
Mitchell Hashimoto
177f8c094d helper/diff: add ID to diff 2014-07-07 14:57:41 -07:00
Mitchell Hashimoto
916eb5aaf3 terraform: copy before modifying struct in graphAddDiff
/cc @pearkes - Fixes the destroy bug
2014-07-07 12:53:39 -07:00
Mitchell Hashimoto
582d81ed03 terraform: converge on calculated variables rather than caching 2014-07-06 23:03:51 -07:00
Mitchell Hashimoto
f1b4f7ad40 terraform: simplify internals, remove unused vars 2014-07-06 21:53:22 -07:00
Mitchell Hashimoto
cc0c32d5ca terraform: test for single index access of counts 2014-07-06 14:09:44 -07:00
Mitchell Hashimoto
a01d979c1b terraform: outputs work with multi-variables 2014-07-05 10:48:47 -07:00
Mitchell Hashimoto
4b5f5aec65 terraform: outputs are computed for the state 2014-07-04 15:36:28 -07:00
Mitchell Hashimoto
3b3c9e140a terraform: tests for increasing count from 1 to > 1 2014-07-03 21:47:07 -07:00
Mitchell Hashimoto
c5a0b9cb40 terraform: test case for decreasing the count 2014-07-03 21:42:18 -07:00
Mitchell Hashimoto
a616218d13 terraform: planning and applying multi-count resources tests 2014-07-03 21:24:17 -07:00
Mitchell Hashimoto
ba144ef933 terraform: clean up root deps on the graph 2014-07-03 20:51:31 -07:00
Mitchell Hashimoto
e7b7644cbf terraform: turn multi-counts into multiple nodes 2014-07-03 20:42:29 -07:00
Mitchell Hashimoto
175e455999 terraform: add better logging 2014-07-03 12:32:00 -07:00
Mitchell Hashimoto
0298b47fd8 terraform: add happy path case for resource config 2014-07-03 12:31:26 -07:00
Mitchell Hashimoto
ed57fe7083 terraform: ValidateResource is called 2014-07-03 12:30:51 -07:00
Mitchell Hashimoto
6508edaba9 terraform: Context.Validate checks ProviderConfig Validate 2014-07-03 12:17:56 -07:00
Mitchell Hashimoto
a6ae7230d1 command: use new API 2014-07-03 11:46:40 -07:00
Mitchell Hashimoto
adcd6486a2 terraform: Context doesn't need a sync.Cond 2014-07-03 11:33:45 -07:00
Mitchell Hashimoto
9e41c6335b terraform: remove unused options for making a plan 2014-07-03 11:33:05 -07:00
Mitchell Hashimoto
51396f02c6 terraform: Plan.Context 2014-07-03 11:32:44 -07:00
Mitchell Hashimoto
99757dc930 terraform: update state when refreshed 2014-07-03 11:30:16 -07:00
Mitchell Hashimoto
d4591c03cc terraform: remove unused function 2014-07-03 11:29:44 -07:00
Mitchell Hashimoto
2b3855d5e2 terraform: make all actions cancellable in context 2014-07-03 11:28:47 -07:00
Mitchell Hashimoto
4ee6771d3a terraform: remove terraform.go 2014-07-03 11:28:04 -07:00
Mitchell Hashimoto
4f5f3a5502 terraform: Context.Stop 2014-07-03 11:27:30 -07:00
Mitchell Hashimoto
603ee36d92 terraform: Context.Apply 2014-07-03 11:04:04 -07:00
Mitchell Hashimoto
403876fff3 terraform: Context.Plan 2014-07-03 10:44:30 -07:00
Mitchell Hashimoto
2e10ddb878 terraform: Context.Refresh 2014-07-03 10:29:14 -07:00
Mitchell Hashimoto
947fa4e669 terraform: Context introduction 2014-07-03 10:14:17 -07:00
Mitchell Hashimoto
c8c7d6baa3 terraform: add some semantic check functions 2014-07-02 20:47:10 -07:00
Mitchell Hashimoto
d0577fda02 terraform: add ValidateResource API to ResourceProvider 2014-07-02 20:35:03 -07:00
Mitchell Hashimoto
770d4e1e71 terraform: destroy should remove from state 2014-07-02 19:56:29 -07:00
Mitchell Hashimoto
8625e8c2ac terraform: tests for Apply in areas of errors 2014-07-02 17:26:39 -07:00
Mitchell Hashimoto
8fba438cf0 terraform: bring order to the world
/cc @pearkes
2014-07-02 17:04:48 -07:00
Mitchell Hashimoto
c51052541b Merge pull request #11 from hashicorp/f-cancel
Ctrl-C
2014-07-02 17:03:44 -07:00
Mitchell Hashimoto
f7bc33812e terraform: use a panic mechanism for handling hooks 2014-07-02 16:27:50 -07:00
Jack Pearkes
8c330d9e4d terraform: register gob type for array 2014-07-02 16:17:26 -07:00
Mitchell Hashimoto
733752122a terraform: stopHook and tests 2014-07-02 16:16:38 -07:00
Mitchell Hashimoto
c493d60358 terraform: register gob type that might be in config 2014-07-02 11:28:23 -07:00
Mitchell Hashimoto
fb843ea5bf terraform: Added NewExtra field for providers to fill in data 2014-07-01 11:23:40 -07:00
Mitchell Hashimoto
2aed2fd96f Fix various order-dependent tests 2014-07-01 10:28:42 -07:00
Mitchell Hashimoto
4b74ddc9d1 terraform: fix data race 2014-07-01 10:11:07 -07:00
Mitchell Hashimoto
2ffbe56b1b terraform: graph root doesn't need to depend on providers 2014-07-01 10:01:27 -07:00
Mitchell Hashimoto
64363da9dd command/plan: add -destroy flag to plan a destroy 2014-07-01 09:12:05 -07:00
Mitchell Hashimoto
fceea12ade terraform: some basic validation 2014-06-30 21:25:15 -07:00
Mitchell Hashimoto
8aa8d2183e terraform: clarify docs 2014-06-30 21:24:26 -07:00
Mitchell Hashimoto
93bf75f464 terraform: comments 2014-06-30 21:22:08 -07:00
Mitchell Hashimoto
0bd704b2f1 terraform: GraphOpts and unification into a single Graph function 2014-06-30 21:21:13 -07:00
Mitchell Hashimoto
361dbb14ae terraform: test for Resource.Vars 2014-06-30 20:59:23 -07:00
Mitchell Hashimoto
ff79fa9c9f terraform: tests for ResourceDiff.Empty 2014-06-30 20:56:25 -07:00
Mitchell Hashimoto
d026d4207e terraform: apply diff before apply 2014-06-30 19:29:07 -07:00
Mitchell Hashimoto
2d72164c6a terraform: graph can add "destroy" nodes 2014-06-30 19:10:44 -07:00
Mitchell Hashimoto
6f274eb7a9 terraform: GraphAddDiff works on a basic level 2014-06-30 18:18:56 -07:00
Mitchell Hashimoto
521b432728 terraform: add Dependencies to ResourceState 2014-06-30 17:40:56 -07:00
Mitchell Hashimoto
b3de33cc69 terraform: failing test but fixes another bug 2014-06-30 11:14:03 -07:00
Mitchell Hashimoto
acc6686cca terraform: Set Destroy: true to PlanOpts to delete everything 2014-06-29 16:28:50 -07:00
Mitchell Hashimoto
5c836ab861 terraform: PlanOpts for expanding plan configuration 2014-06-28 13:10:11 -07:00
Mitchell Hashimoto
fe79e5df03 command/apply: can take a plan as an argument 2014-06-27 14:43:33 -07:00
Mitchell Hashimoto
5a84a24d12 terraform: pre/post apply hook 2014-06-26 22:09:16 -07:00
Mitchell Hashimoto
ae6b85e11b terraform: diff hooks 2014-06-26 17:17:10 -07:00
Mitchell Hashimoto
01319e1dc9 Ui hook 2014-06-26 17:05:21 -07:00
Mitchell Hashimoto
501f926eba terraform: initial hook impl 2014-06-26 16:52:15 -07:00
Mitchell Hashimoto
6e995feb5e providers/aws: if no reservations, no instance 2014-06-26 09:58:38 -07:00
Mitchell Hashimoto
0ab7faf5c1 terraform: update test to latest 2014-06-25 22:19:27 -07:00
Mitchell Hashimoto
4147500fcc terraform: diff is not empty if it has to destroy 2014-06-25 22:10:25 -07:00
Mitchell Hashimoto
1d9d33c8a0 terraform: destroy orphans 2014-06-25 21:58:33 -07:00
Mitchell Hashimoto
e8035a5c96 providers/aws: properly create an i nstance after destroy 2014-06-25 18:49:30 -07:00
Mitchell Hashimoto
5384f63b3d terraform: set type on apply 2014-06-25 18:33:32 -07:00
Mitchell Hashimoto
84a645712b terraform: Type should always be set on ResourceState 2014-06-25 18:29:36 -07:00
Mitchell Hashimoto
d64ba66edb command: adhere to new API 2014-06-25 18:22:42 -07:00
Mitchell Hashimoto
4b263992cc terraform: remove unused code 2014-06-25 18:13:58 -07:00
Mitchell Hashimoto
0f2d7f430c terraform: all tests passing 2014-06-25 18:12:03 -07:00
Mitchell Hashimoto
e9d1be397c terraform: Plan seems to work again 2014-06-25 17:40:50 -07:00
Mitchell Hashimoto
c68cfc5e6f terraform: test that state is properly sent to Refresh 2014-06-25 15:52:15 -07:00
Mitchell Hashimoto
8a44ca984e terraform: Refresh tests 2014-06-25 15:39:44 -07:00
Mitchell Hashimoto
abe205fc27 terraform: GraphFull tests 2014-06-25 14:53:32 -07:00
Mitchell Hashimoto
9d4f7b71c4 terraform: fill in the graph with the providers 2014-06-25 14:47:38 -07:00
Mitchell Hashimoto
cdab89d7c1 terraform: getting closer to mapping resource providers properly 2014-06-25 12:58:27 -07:00
Mitchell Hashimoto
0bf394dfe2 terraform: make our own graph meta 2014-06-24 15:25:04 -07:00
Mitchell Hashimoto
b6272a4a69 terraform: comments 2014-06-24 15:06:35 -07:00
Mitchell Hashimoto
1918f199d8 terraform: Graph, config: don't build graph 2014-06-24 14:58:57 -07:00
Mitchell Hashimoto
9d8c2790fa terraform: remove unused var 2014-06-24 13:08:56 -07:00
Mitchell Hashimoto
9c024994b7 terraform: diff has Destroy flag 2014-06-24 12:54:05 -07:00
Mitchell Hashimoto
4084ed9234 terraform: no longer store the graph on Terraform itself 2014-06-24 10:16:48 -07:00
Mitchell Hashimoto
1d724f3481 terraform :comments 2014-06-23 20:52:44 -07:00
Mitchell Hashimoto
24c9b7c987 terraform: make sure state is set to something on refresh 2014-06-23 20:40:32 -07:00
Mitchell Hashimoto
c556e2ad48 providers/aws: start filling out 2014-06-23 19:01:57 -07:00
Mitchell Hashimoto
c5a621a47a terraform: error if unknown variable retruned 2014-06-23 13:08:25 -07:00
Mitchell Hashimoto
175b720ab1 diff: mark diff properly with input/output 2014-06-23 12:49:30 -07:00
Mitchell Hashimoto
7eacacbff2 terraform: MergeDiff can take nil diff 2014-06-23 12:32:04 -07:00