Terraform infra for Jenkins Server
Initializes the working directory containing Terraform configuration files:
$ terraform initRewrite Terraform configuration files to a canonical format and style:
$ terraform fmt .Validate the configuration files in a directory:
$ terraform validate .Creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure:
$ terraform planApply a configuration to build infra:
$ terraform applyDestroy infrastructure:
$ terraform destroy -
Elastic IP: Due to frequent terraform apply and destroy operations, elastic IP is managed independently of Terraform, so as to attach the same elastic IP everytime on doing a 'terraform apply', and dissociating it (not detroy) on doing a 'terraform destroy'. -
DNS Hosted Zone: Hosted zone is a permanent resource, need not be destroyed and recreated everytime with tf apply and destroy operations.