Terraform

Displaying output in Terraform

After executing “terraform apply” normally it will show “the resource has been created” with some little information’s. If you like to see more attributes about resources or some specific values after resource creation you have to include output section in your tf source code file. For this example we will consider the scenario for creating EIP and S3 bucket in…

Continue Reading

Terraform

How to destroy resources through Terraform?

In 3 ways we can destroy the resources through Terrafrom. 1.From the terrafrom init directroy – Where you keep the actual config files,2.Specifying the target with provider,3.Remove the resource code from your tf file. Option1: – From the terraform init directory #terraform destroy Here it will show clearly what are the resources can be deleted . In this example “yourec2”…

Continue Reading