Commit Graph

13 Commits

Author SHA1 Message Date
Paul Hinze a0d3245ee3 core: Orphan addressing / targeting
Instead of trying to skip non-targeted orphans as they are added to
the graph in OrphanTransformer, remove knowledge of targeting from
OrphanTransformer and instead make the orphan resource nodes properly
addressable.

That allows us to use existing logic in TargetTransformer to filter out
the nodes appropriately. This does require adding TargetTransformer to the
list of transforms that run during DynamicExpand so that targeting can
be applied to nodes with expanded counts.

Fixes #4515
Fixes #2538
Fixes #4462
2016-01-19 17:48:44 -06:00
Matt Good 21b0a03d70 Support for multiple providers of the same type
Adds an "alias" field to the provider which allows creating multiple instances
of a provider under different names. This provides support for configurations
such as multiple AWS providers for different regions. In each resource, the
provider can be set with the "provider" field.

(thanks to Cisco Cloud for their support)
2015-04-20 14:14:34 -07:00
Mitchell Hashimoto 2b917054da terraform: orphan transform should work if state is nil 2015-02-19 12:08:01 -08:00
Mitchell Hashimoto ce37165c06 terraform: orphan transform was not picking up modules without parent in
state
2015-02-19 12:08:01 -08:00
Mitchell Hashimoto d847b2b672 terraform: provider config inheritance in modules 2015-02-19 12:07:59 -08:00
Mitchell Hashimoto 02bedd6850 terraform: transformers operate on root structures 2015-02-19 12:07:54 -08:00
Mitchell Hashimoto c0695b0657 terraform: tests that some other graph nodes implement the interfaces 2015-02-19 12:07:53 -08:00
Mitchell Hashimoto 6d46b02fa5 terraform: test orphan-to-orphan dependencies 2015-02-19 12:07:53 -08:00
Mitchell Hashimoto 7025c48165 terraform: module orphan dependencies 2015-02-19 12:07:52 -08:00
Mitchell Hashimoto 922bdc92db terraform: module orphans 2015-02-19 12:07:52 -08:00
Mitchell Hashimoto 4f8152c28a terraform: the orphan transform uses the graph path 2015-02-19 12:07:52 -08:00
Mitchell Hashimoto 3820aea513 terraform: make adding config nodes a transformer 2015-02-19 12:07:52 -08:00
Mitchell Hashimoto 6eb379fa75 terraform: start the transforms, adding orphans 2015-02-19 12:07:52 -08:00