runway.cfngin.cfngin module¶
CFNgin entrypoint.
- class runway.cfngin.cfngin.CFNgin[source]¶
Bases:
object
Control CFNgin.
- concurrency¶
Max number of CFNgin stacks that can be deployed concurrently. If the value is
0
, will be constrained based on the underlying graph.- Type:
- parameters¶
Combination of the parameters provided when initializing the class and any environment files that are found.
- Type:
- recreate_failed¶
Destroy and re-create stacks that are stuck in a failed state from an initial deployment when updating.
- Type:
- sys_path¶
Working directory.
- Type:
- __init__(ctx: runway.context.RunwayContext, parameters: dict[str, Any] | None = None, sys_path: Path | None = None) None [source]¶
Instantiate class.
- Parameters:
ctx – Runway context object.
parameters – Parameters from Runway.
sys_path – Working directory.
- deploy(force: bool = False, sys_path: Path | None = None) None [source]¶
Run the CFNgin deploy action.
- Parameters:
force – Explicitly enable the action even if an environment file is not found.
sys_path – Explicitly define a path to work in. If not provided,
self.sys_path
is used.
- destroy(force: bool = False, sys_path: Path | None = None) None [source]¶
Run the CFNgin destroy action.
- Parameters:
force – Explicitly enable the action even if an environment file is not found.
sys_path – Explicitly define a path to work in. If not provided,
self.sys_path
is used.
- property env_file: MutableMap¶
Contents of a CFNgin environment file.
- classmethod find_config_files(exclude: list[str] | None = None, sys_path: Path | None = None) list[Path] [source]¶
Find CFNgin config files.
- Parameters:
exclude – List of file names to exclude. This list is appended to the global exclude list.
sys_path – Explicitly define a path to search for config files.
- Returns:
Paths to config files that were found.
- load(config_path: Path) runway.context.CfnginContext [source]¶
Load a CFNgin config into a context object.
- Parameters:
config_path – Valid path to a CFNgin config file.