First commit

This commit is contained in:
2024-05-19 15:25:41 -05:00
commit c8e909ae88
29 changed files with 7715 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
resource "azurerm_static_web_app" "static_web_app" {
name = var.static_web_app_name
resource_group_name = var.resource_group_name
location = var.region
}
resource "azurerm_static_web_app_custom_domain" "static_web_app_custom_domain" {
count = var.custom_domain_name_count
static_web_app_id = azurerm_static_web_app.static_web_app.id
domain_name = "${var.subdomain_name}.${var.domain_name}"
validation_type = "cname-delegation"
}

View File

@@ -0,0 +1,11 @@
output "id" {
value = azurerm_static_web_app.static_web_app.id
}
output "api_key" {
value = azurerm_static_web_app.static_web_app.api_key
}
output "default_host_name" {
value = azurerm_static_web_app.static_web_app.default_host_name
}

View File

@@ -0,0 +1,24 @@
variable "region" {
}
variable "resource_group_name" {
}
variable "static_web_app_name" {
}
variable "custom_domain_name_count" {
}
variable "domain_name" {
}
variable "subdomain_name" {
}