python - Troposphere, passing output of a stack as input to another -
suppose i'm defined 2 stacks, , b.
in stack a, define vpc , subnet , output subnet's id
t = template() subnet = t.add_resource(subnet .....) subnetid = t.add_output(output('subnetid', value=ref(subnet))
in stack b, have these instances want live within subnet defined in stack a. how can achieve that?
you'll need pass them in stack b parameters. decent example of in stacker, open source project maintain (i w/ troposphere).
the bastion.py blueprint takes many parameters come vpc.py blueprint (both found here - sorry, tried post links each of blueprints, stackoverflow won't let me post more 2 links.). stacker handles passing parameters 1 stack you, biggest reason wrote it.
let me know if have questions.
Comments
Post a Comment