python - terraform 应用字符串模板而不是模板文件
问题描述
在 python 脚本terraform apply
中可以按如下方式运行:
from python_terraform import *
...
tf = Terraform(TERRAFORM_DIR)
return_code, stdout, stderr = tf.apply(capture_output=True, skip_plan=True)
有没有办法terraform apply
使用像 AWS cloudformation(例如 TemplateBody= some_string)这样的字符串模板在其中运行?
解决方案
推荐阅读
- python - 无法使用 ratcave 和 pyglet 打开 .obj 文件
- kong - 如何将 Django API 与 KONG 网关集成?
- c++ - 在这种可变参数非类型模板参数的情况下,为什么我需要一个主模板?
- java - 在 JavaFX 中加载 .ttf 字体在 Windows 上是像素化的
- python - Python Pandas:如何仅 str.lower() 包含特定字符串的行或单元格
- typescript - 类型 '{ 方法:{ loadItems: ActionMethod; 上不存在属性 'loadItems' }; 挂载():无效;}'
- mysql - 如何使用 node.js 处理长时间运行的数据库进程?
- geoserver - 如何使用 geoserver 和 kakadu 服务 jp2 图像
- python - 通过提供绝对路径从 bash 脚本 (.sh) 文件调用 python 文件
- php - php中的多选下拉菜单,以及如何在if条件下检查多选下拉菜单的值?