Added some terraform

going though terraform for azure
This commit is contained in:
James Tombleson 2019-04-22 20:11:14 -07:00
parent 195f730c30
commit 761c5daaf9
2 changed files with 25 additions and 0 deletions

5
.gitignore vendored
View File

@ -4,3 +4,8 @@
.DS_Store
hosts
# Ignore Terraform state files.
.tfstate
.tfstate.backup
.terraform*

20
terraform/azure/main.tf Normal file
View File

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