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
METHOD | DESCRIPTION |
---|---|
model_dump |
Serialize model to match the structure of a Pulumi.yaml file. |
write |
Write Pulumi.yaml configuration file |
preview |
Runs |
up |
Runs |
destroy |
Runs |
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
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 72 73 74 |
|
write
¤
write()
Write Pulumi.yaml configuration file
RETURNS | DESCRIPTION |
---|---|
str
|
Filepath of the configuration file |
Source code in laktory/models/stacks/pulumistack.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
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
120 121 122 123 124 125 126 127 128 129 130 131 |
|
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
133 134 135 136 137 138 139 140 141 142 143 144 |
|
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
146 147 148 149 150 151 152 153 154 155 156 157 |
|