This PR adds the idea of hooks to boilerplate. A hook is an arbitrary shell command for Boilerplate to execute at specific times. Currently, two types of hooks are supported:
The before hook allows you to run scripts before Boilerplate has started rendering.
The after hook allows you to run scripts after Boilerplate has finished rendering.
Other hooks may be added in the future.
The motivating use cases for this are:
Create the initial IAM permissions in usage-patterns before generating a full stack for a new client.
Run terragrunt spin-up automatically after the full stack has been generated.
This PR adds the idea of
hooks
to boilerplate. A hook is an arbitrary shell command for Boilerplate to execute at specific times. Currently, two types of hooks are supported:before
hook allows you to run scripts before Boilerplate has started rendering.after
hook allows you to run scripts after Boilerplate has finished rendering.Other hooks may be added in the future.
The motivating use cases for this are:
terragrunt spin-up
automatically after the full stack has been generated.