Is there a way to run initial SQL when creating an RDS database instance using CloudFormation?

后端 未结 4 1442
北海茫月
北海茫月 2020-12-24 05:21

I am creating an RDS instance using CloudFormation using this:

\"Resources\": {
        \"myDB\": {
            \"Type\": \"AWS::RDS::DBInstance\",
                     


        
4条回答
  •  伪装坚强ぢ
    2020-12-24 05:43

    CloudFormation still doesn't hold any solutions for us, but hopefully they will add Database Migration Service support soon.

    In the meantime, there is great solution if you're using CodePipeline: create a migration stage that invokes a Lambda function to run your migration. I stumbled across this guide for invoking Lambda from CodePipeline that may be helpful for those unfamiliar.

提交回复
热议问题