Terraform: How to run a command after an RDS creation?

I wanted to know how to run a command after creating an RDS instance with Terraform. This was the answer I got from AWS. Even though, Terraform shouldn't be used like this.