runway.cfngin.hooks.utils module

Hook utils.

class runway.cfngin.hooks.utils.BlankBlueprint(name, context, mappings=None, description=None)[source]

Bases: runway.cfngin.blueprints.base.Blueprint

Blueprint that can be built programatically.

Instantiate class.

Parameters
  • name (str) – A name for the blueprint.

  • context (runway.cfngin.context.Context) – Context the blueprint is being executed under.

  • mappings (dict, optional) – CloudFormation Mappings to be used in the template.

  • description (str) – Used to describe the resulting CloudFormation template.

create_template()[source]

Create template without raising NotImplementedError.

runway.cfngin.hooks.utils.full_path(path)[source]

Return full path.

runway.cfngin.hooks.utils.handle_hooks(stage, hooks, provider, context)[source]

Handle pre/post_build hooks.

These are pieces of code that we want to run before/after the builder builds the stacks.

Parameters