runway.blueprints.tf_state module

Module with Terraform state resources.

class runway.blueprints.tf_state.TfState(name, context, mappings=None, description=None)[source]

Bases: runway.cfngin.blueprints.base.Blueprint

Stacker blueprint for creating Terraform state resources.

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.

VARIABLES = {'BucketName': {'default': '', 'description': '(optional) Name for the S3 bucket', 'type': <runway.cfngin.blueprints.variables.types.CFNType object>}, 'TableName': {'default': '', 'description': '(optional) Name for the DynamoDB table', 'type': <runway.cfngin.blueprints.variables.types.CFNType object>}}
create_template()[source]

Create template (main function called by Stacker).