0

I use CloudFormation's AWS::RDS::DBCluster resource to create my Aurora MySQL database cluster.

My question is, has anyone created stored procedures as well as events in Aurora MySQL via CloudFormation? Is that even possible?

Delivering these via CloudFormation would allow me to recreate the infrastructure without deploying the stored procedures and events separately.

4

1 回答 1

1

无法AWS::RDS::DBCluster直接使用 CloudFormation 资源配置存储过程和事件。

我的建议是提供一个AWS::EC2::Instance包含UserData安装 mysql 客户端的脚本,然后执行用户提供的 MySQL 脚本的内容,在新创建的数据库实例上创建事件/存储过程。

于 2017-01-09T01:50:31.570 回答