Will add more later:
As Main.tf
Alternatively, You can break it up into separate files:
Commands:
terraform init
initialize a working directory containing Terraform configuration files
terraform fmt
formats the files to be Terraform friendly.
terraform validate
checks config files but does not check remote services
terraform plan
creates execution plan
terraform apply
executes the actions proposed in a Terraform plan
terraform destroy
tears down terraform infrastructure
For the Terraform Import method:
https://spacelift.io/blog/importing-exisiting-infrastructure-into-terraform
Top comments (0)