summaryrefslogtreecommitdiff
path: root/docs/automation/terraform/terraformvyos.rst
diff options
context:
space:
mode:
authormkorobeinikov <92354771+mkorobeinikov@users.noreply.github.com>2024-03-05 08:31:15 +0300
committermkorobeinikov <92354771+mkorobeinikov@users.noreply.github.com>2024-03-07 06:03:25 +0300
commitc179e3e73d4ee3fed9fdc012af282c846f65d57b (patch)
tree3f43cfe7465252c99830c0d6cf7900e8b36c2ba1 /docs/automation/terraform/terraformvyos.rst
parent9493803d36df789c508df9d199f502cc6945282e (diff)
downloadvyos-documentation-c179e3e73d4ee3fed9fdc012af282c846f65d57b.tar.gz
vyos-documentation-c179e3e73d4ee3fed9fdc012af282c846f65d57b.zip
Update and add information about Terraform
- update AWS + terraform index - add Azure + terraform vSpgere + terraform
Diffstat (limited to 'docs/automation/terraform/terraformvyos.rst')
-rw-r--r--docs/automation/terraform/terraformvyos.rst39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/automation/terraform/terraformvyos.rst b/docs/automation/terraform/terraformvyos.rst
new file mode 100644
index 00000000..42dc7492
--- /dev/null
+++ b/docs/automation/terraform/terraformvyos.rst
@@ -0,0 +1,39 @@
+:lastproofread: 2024-03-03
+
+.. _terraformvyos:
+
+Terraform for VyOS
+==================
+
+VyOS supports development infrastructure via Terraform and provisioning via Ansible.
+Terraform allows you to automate the process of deploying instances on many cloud and virtual platforms.
+In this article, we will look at using terraforms to deploy VyOS on platforms - AWS, Azure, and vSphere.
+For more details about Terraform please have a look here link_.
+
+Need to install_ Terraform
+
+Structure of files in the standard Terraform project:
+
+.. code-block:: none
+
+ .
+ ├── main.tf # The main script
+ ├── version.tf # File for the changing version of Terraform.
+ ├── variables.tf # The file of all variables in "main.tf"
+ └── terraform.tfvars # The value of all variables (passwords, login, ip adresses and so on)
+
+
+General commands that we will use for running Terraform scripts
+
+
+.. code-block:: none
+
+ cd /<your folder> # go to the Terrafom project
+ terraform init # install all addons and provider (aws az and so on)
+ terraform plan # show what is changing
+ terraform apply # run script
+ yes # apply running
+
+
+.. _link: https://developer.hashicorp.com/terraform/intro
+.. _install: https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli \ No newline at end of file