Terraspace Bundle Example Command

Terraspace bundler has the ability to import example from a module’s examples folder with:

terraspace bundle example MOD EXAMPLE

Examples

$ terraspace bundle example eks managed_node_groups
Example from vendor/modules/eks/examples/managed_node_groups imported to app/stacks/managed_node_groups

Specify the stack name:

$ terraspace bundle example eks managed_node_groups --name eks
Example from vendor/modules/eks/examples/managed_node_groups imported to app/stacks/eks

Terraspace copies starter examples within the downloaded module to the app/stacks folder. Terraspace also rewrites the module source attribute to point to the correct location. It practically writes code for you, saving you time. 😁

Also see: Stack Option.

More tools: