- Till now, we only used variables without hardcoding any values to resources.
- Create two new files with name variables.tf for declaring variables and terrafrom.vars.tf for assigning values to variables declared, Copy the variables.tf for declaring variables and terraform.tfvars file from my repository . Don't forget to customize
terraform.tfvars
according to your requirements. - Now , additionally create a new file with name secret.tfvars for providing values for DB useranme and DB password like this file