Module gcip.addons.aws.sequences.cdk

Classes

class DiffDeploy (*,
stacks: list[str],
context: dict[str, str] | None = None,
wait_for_stack: bool = True)
Expand source code
class DiffDeploy(Sequence):
    def __init__(
        self,
        *,
        stacks: list[str],
        context: dict[str, str] | None = None,
        wait_for_stack: bool = True,
    ) -> None:
        super().__init__()

        #
        # cdk diff
        #
        self.diff_job = Diff(stacks=stacks, context=context)
        self.add_children(self.diff_job)

        if wait_for_stack:
            self.wait_for_stack_job = WaitForStackReady(
                stacks=stacks,
            )
            self.add_children(self.wait_for_stack_job)
        #
        # cdk deploy
        #
        self.deploy_job = Deploy(stacks=stacks, context=context)
        self.deploy_job.add_needs(self.diff_job, self.wait_for_stack_job)
        self.add_children(self.deploy_job)

A Sequence collects multiple Jobs and/or other Sequences into a group.

Ancestors

Inherited members

class DiffDeployOpts (*, stacks: list[str], context: dict[str, str] | None = None)
Expand source code
@dataclass(kw_only=True)
class DiffDeployOpts:
    stacks: list[str]
    context: dict[str, str] | None = None

DiffDeployOpts(*, stacks: list[str], context: dict[str, str] | None = None)

Instance variables

var context : dict[str, str] | None
var stacks : list[str]