sceptre.config package¶
Submodules¶
sceptre.config.graph module¶
sceptre.config.graph
This module implements a StackGraph, which is represented as a directed acyclic graph of a Stack’s dependencies.
- class sceptre.config.graph.StackGraph(stacks)[source]¶
Bases:
object
A Directed Acyclic Graph representing the relationship between a Stack and its dependencies. Responsible for initalising the graph based on a set of Stacks.
sceptre.config.reader module¶
sceptre.config
This module implements a ConfigReader class, which is responsible for reading and constructing Stacks.
- sceptre.config.reader.ConfigAttributes¶
alias of
Attributes
- class sceptre.config.reader.ConfigReader(context)[source]¶
Bases:
object
Parses YAML configuration files and produces Stack objects.
Responsible for loading Resolvers and Hook classes and adding them as constructors to the PyYAML parser.
- Parameters
context – A SceptreContext.
- construct_stacks()[source]¶
Traverses the files under the command path. For each file encountered, a Stack is constructed using the correct config. Dependencies are traversed and a final set of Stacks is returned.
- read(rel_path, base_config=None)[source]¶
Reads in configuration from one or more YAML files within the Sceptre project folder.
- resolve_stacks(stack_map)[source]¶
Transforms map of Stacks into a set of Stacks, transforms dependencies from a list of Strings (stack names) to a list of Stacks.
- Parameters
stack_map – Map of stacks, containing dependencies as list of Strings.
- Returns
Set of stacks, containing dependencies as list of Stacks.
- Return type
- Raises
sceptre.exceptions.DependencyDoesNotExistError
sceptre.config.strategies module¶
sceptre.config.strategies
This module contains the implementations of the strategies used to merge config attributes.