From 761c5daaf92636cd13dae18854d0b91259532197 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 22 Apr 2019 20:11:14 -0700 Subject: [PATCH] Added some terraform going though terraform for azure --- .gitignore | 5 +++++ terraform/azure/main.tf | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 terraform/azure/main.tf diff --git a/.gitignore b/.gitignore index e91eb9f..a97db86 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,8 @@ .DS_Store hosts + +# Ignore Terraform state files. +.tfstate +.tfstate.backup +.terraform* diff --git a/terraform/azure/main.tf b/terraform/azure/main.tf new file mode 100644 index 0000000..7a5bab0 --- /dev/null +++ b/terraform/azure/main.tf @@ -0,0 +1,20 @@ + +provider "azurerm" { + version = "=1.20.0" +} + +resource "azurerm_resource_group" "rg" { + name = "myTFResourceGroup" + location = "eastus" + + tags { + envirement = "TF Sandbox" + } +} + +resource "azurerm_virtual_network" "vnet" { + name = "myTFnet" + address_space = ["10.0.0.0/16"] + location = "eastus" + resource_group_name = "${azurerm_resource_group.rn.name}" +}