add azure stuff to terraform

This commit is contained in:
Torma Kristóf 2022-04-25 19:46:21 +02:00
parent 58ad166610
commit e69aeeac62
4 changed files with 38 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
creds.txt
.terraform
*.tfstate
*.info
*.backup

9
azure-resourcegroups.tf Normal file
View File

@ -0,0 +1,9 @@
resource "azurerm_resource_group" "rg-static-site" {
name = "rg-static-site"
location = "West Europe"
}
resource "azurerm_resource_group" "rg-personalsite-staticwebapp" {
name = "rg-personalsite-staticwebapp"
location = "West Europe"
}

11
azure-staticwebapps.tf Normal file
View File

@ -0,0 +1,11 @@
resource "azurerm_static_site" "tormakristofeu" {
name = "tormakristofeu"
resource_group_name = "rg-static-site"
location = "West Europe"
}
resource "azurerm_static_site" "personal-site" {
name = "personal-site"
resource_group_name = "rg-personalsite-staticwebapp"
location = "West Europe"
}

13
main.tf Normal file
View File

@ -0,0 +1,13 @@
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.0.2"
}
}
}
provider "azurerm" {
features {}
}