{"repo":"SebastianUA/terraform","free":true,"listed":false,"github":"https://github.com/SebastianUA/terraform","clone":"git clone https://github.com/SebastianUA/terraform.git","description":"The place to storing Terraform modules of many providers","language":"HCL","stars":196,"topics":["aws","gcp","cloudflare","terraform","newrelic","tls","null-resource","random","helm","vault"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Terraform usage ---------------- Install Terraform - If you're using MacOS, then you can run the next command to install TF: NOTE: you must install HOMEBREW to your host something like: - For Unix/Linux OS you might go to the official Terraform site and download bin-file with software. Init --------- First of all, you should clone this repo to your local machine. I provided modules with simple examples. After, go to needed example and run the next command: This command will init everything to provision module(s). Plan --------- When you set terraform init you will be able to see which services are going to create with the next command: If you're using tfvars , you can run the following command: It's a good point to use tfvars for multiple environments, - as example. Apply --------- To apply your stack, you can use: Or: Also, you can use -auto-approve command to automatically apply the stack. Destroy --------- To terminate the stack, use: Or: Also, you can use -auto-approve command to automatically terminate the stack. graph If you're using mac OS, you must install the next package: Then, run: state If you would like to remove your stack from TF statefile, you can use this command: The structura is the next one: module. . . [count.index] . Where: - MODULE NAME - The module name. - RESOURCE NAME - the resource name of provider. - NAME of RESOURCE - The name of resource of created RESOURCE NAME. - [count.index] - Index of resource in loop. That's it. import If you would like to ","default_branch":null,"files":null,"tree":[],"storefront":"/r/SebastianUA","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SebastianUA/terraform/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}