Added some terraform
going though terraform for azure
This commit is contained in:
parent
195f730c30
commit
761c5daaf9
5
.gitignore
vendored
5
.gitignore
vendored
@ -4,3 +4,8 @@
|
||||
|
||||
.DS_Store
|
||||
hosts
|
||||
|
||||
# Ignore Terraform state files.
|
||||
.tfstate
|
||||
.tfstate.backup
|
||||
.terraform*
|
||||
|
20
terraform/azure/main.tf
Normal file
20
terraform/azure/main.tf
Normal 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}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user