


Resources that will be created as part of Terraform template,įirst of all, Terraform will create TLS Key pair (Public/Private) and will save the Private Key with “.pem” extension. Therefore, in this blog I have shared the Terraform script which I used to deploy it. Terraform is a ‘Infrastructure as Code (IaC)’ tool which is used to implement disposable infrastructure.

This time I thought of using Terraform to deploy the MYSQL database in AWS EC2 instance. Recently I used MySQL as the backend database for my Django project which is hosted in AWS EC2 instance, which was created manually.
