You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blueprints_ are python classes that dynamically build CloudFormation templates.
14
-
Where you would specify a raw Cloudformation template in a stack using the ``template_path`` key, you instead specify a Blueprint_ python file using the ``class_path`` key.
11
+
:ref:`Blueprints <term-blueprint>` are python classes that dynamically build CloudFormation templates.
12
+
Where you would specify a raw Cloudformation template in a stack using the ``template_path`` key, you instead specify a :ref:`Blueprint <term-blueprint>` python file using the ``class_path`` key.
15
13
16
-
Traditionally Blueprints_ are built using troposphere_, but that is not absolutely necessary.
14
+
Traditionally :ref:`Blueprints <term-blueprint>` are built using troposphere_, but that is not absolutely necessary.
17
15
18
16
Making your own should be easy, and you can take a lot of examples from `Runway blueprints`_.
19
-
In the end, all that is required is that the Blueprint_ is a subclass of ``runway.cfngin.blueprints.base`` and it have the following methods:
17
+
In the end, all that is required is that the :ref:`Blueprint <term-blueprint>` is a subclass of ``runway.cfngin.blueprints.base`` and it have the following methods:
20
18
21
19
.. code-block:: python
22
20
23
-
# Initializes the Blueprint
24
-
def__init__(self, name, context, mappings=None):
21
+
# Initializes the Blueprint
22
+
def__init__(self, name, context, mappings=None):
25
23
26
-
# Updates self.template to create the actual template
27
-
defcreate_template(self):
24
+
# Updates self.template to create the actual template
25
+
defcreate_template(self):
28
26
29
-
# Returns a tuple: (version, rendered_template)
30
-
defrender_template(self):
27
+
# Returns a tuple: (version, rendered_template)
28
+
defrender_template(self):
31
29
32
30
33
31
Variables
@@ -105,8 +103,8 @@ TroposphereType
105
103
---------------
106
104
107
105
The ``TroposphereType`` can be used to generate resources for use in the
108
-
Blueprint_ directly from user-specified configuration. Which case applies depends
109
-
on what ``type`` was chosen, and how it would be normally used in the Blueprint_
106
+
:ref:`Blueprint <term-blueprint>` directly from user-specified configuration. Which case applies depends
107
+
on what ``type`` was chosen, and how it would be normally used in the :ref:`Blueprint <term-blueprint>`
110
108
(and CloudFormation in general).
111
109
112
110
Resource Types
@@ -124,6 +122,8 @@ and the corresponding *values* are themselves dictionaries, to be used as
124
122
parameters for creating each of multiple ``type`` objects. A list of those
0 commit comments