PulumiStack
laktory.models.PulumiStack
¤
Bases: BaseModel
A Pulumi stack is pulumi-specific flavor of the laktory.models.Stack
. It
re-structure the attributes to be aligned with a Pulumi.yaml file.
It is generally not instantiated directly, but rather created using
laktory.models.Stack.to_pulumi()
.
References
- pulumi yaml options
Functions¤
model_dump
¤
model_dump(*args, **kwargs)
Serialize model to match the structure of a Pulumi.yaml file.
Source code in laktory/models/stacks/pulumistack.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
write
¤
write()
Write Pulumi.yaml configuration file
RETURNS | DESCRIPTION |
---|---|
str
|
Filepath of the configuration file |
Source code in laktory/models/stacks/pulumistack.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
preview
¤
preview(stack=None, flags=None)
Runs pulumi preview
PARAMETER | DESCRIPTION |
---|---|
stack |
Name of the stack to use
TYPE:
|
flags |
List of flags / options for pulumi preview |
Source code in laktory/models/stacks/pulumistack.py
117 118 119 120 121 122 123 124 125 126 127 128 |
|
up
¤
up(stack=None, flags=None)
Runs pulumi up
PARAMETER | DESCRIPTION |
---|---|
stack |
Name of the stack to use
TYPE:
|
flags |
List of flags / options for pulumi up |
Source code in laktory/models/stacks/pulumistack.py
130 131 132 133 134 135 136 137 138 139 140 141 |
|
destroy
¤
destroy(stack=None, flags=None)
Runs pulumi destroy
PARAMETER | DESCRIPTION |
---|---|
stack |
Name of the stack to use
TYPE:
|
flags |
List of flags / options for pulumi up |
Source code in laktory/models/stacks/pulumistack.py
143 144 145 146 147 148 149 150 151 152 153 154 |
|