【问题标题】:terraform script to create mysql schema and load data用于创建 mysql 模式和加载数据的 terraform 脚本
【发布时间】:2018-08-26 20:09:17
【问题描述】:

我在 AWS 管理控制台中创建了 RDS Aurora 数据库。我在 mysql 架构和插入语句上有 sql 脚本。

我在创建数据库时创建了 terraform 脚本,接下来是使用 terraform 创建 mysql 架构并加载数据。我的问题是我是否使用 terraform 脚本来创建 mysql 架构并加载数据?我不清楚。

【问题讨论】:

    标签: amazon-rds terraform


    【解决方案1】:

    您可以尝试使用 terraform 来创建您的 mysql 架构,并通过利用 terraform provisioniner 加载数据:https://www.terraform.io/docs/provisioners/index.html

    例如,您可以使用 remote-exec 执行远程脚本。这个

    您应该知道,terraform 的核心功能是提供基础设施。使用专门的工具可以更好地配置和管理服务。

    【讨论】:

      猜你喜欢
      • 2014-12-25
      • 2014-04-03
      • 2010-12-12
      • 2016-06-14
      • 2021-11-19
      • 2011-08-11
      • 2018-04-25
      • 1970-01-01
      • 2021-04-18
      相关资源
      最近更新 更多