Before all, you need set AWS credentials and Database ENVs using:
export AWS_ACCESS_KEY_ID=xxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxxx
export TF_VAR_DB_USERNAME=root
export TF_VAR_DB_PASSWORD=password
Or configure it in windows environments.
# To init terraform
make init
# To run terraform plan
make plan
# To apply changes
make up
To destroy resources:
make down
# To init terraform
terraform -chdir=terraform init
# To run terraform plan
terraform -chdir=terraform plan
# To apply changes
terraform -chdir=terraform apply -auto-approve
To destroy resources:
terraform -chdir=terraform destroy -auto-approve