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}" +}