Hi,
I'm trying to understand whether I can convert a YAML o JSON to Python, in this way I can use existing templates or customizing then in YAML, then to convert them to Python to build infra.
I have used the code example below without any luck.
Can you advise some tutorials or provide simple examples?., thanks in advanced.
from troposphere.template_generator import TemplateGenerator
import yaml
with open("vpc_template_convert.yml") as f:
source_content = yaml.load(f, Loader=yaml.BaseLoader)
template = TemplateGenerator(source_content)