title: Create database schema with terraform
body: <p>I created RDS instance using <code>aws_db_instance</code> (<code>main.tf</code>):</p>
  
  <pre><code>resource "aws_db_instance" "default" {
      identifier           = "${module.config.database["db_inst_name"]}"
      allocated_storage    = 20
      storage_type         = "gp2"
      engine               = "mysql"
      engine_version       = "5.7"
      instance_class       = "db.t3.micro"
      name                 = "${module.config.database["db_name_prefix"]}${terraform.workspace}"
      username             = "${module.config.database["db_username"]}"
      password             = "${module.config.database["db_password"]}"
      parameter_group_name = "default.mysql5.7"
      skip_final_snapshot  = true
  }
  </code></pre>
  
  <p>Can I also create database schemas from file <code>schema.sql</code> with <code>terraform apply</code>?</p>
  
  <pre><code>$ tree -L 1                                                                                               
  .
  ├── main.tf
  └── schema.sql
  </code></pre>