reorganize, add scaffold folder
update readmes clean up tf provider add readme and initial templates add initial pass at readmes more readme updates update various quickstarts finish cleaning up 101s more updates lots fo template updates add remaining more updates
This commit is contained in:
25
quickstart/201-web-app-postgres-keyvault/webapp.tf
Normal file
25
quickstart/201-web-app-postgres-keyvault/webapp.tf
Normal file
@ -0,0 +1,25 @@
|
||||
resource "azurerm_app_service_plan" "webAppFrontend" {
|
||||
name = "${var.siteName}serviceplan"
|
||||
resource_group_name = "${azurerm_resource_group.webAppMySqlRg.name}"
|
||||
location = "${azurerm_resource_group.webAppMySqlRg.location}"
|
||||
tags = "${azurerm_resource_group.webAppMySqlRg.tags}"
|
||||
|
||||
sku {
|
||||
tier = "${var.servicePlanTier}"
|
||||
size = "${var.servicePlanSize}"
|
||||
}
|
||||
}
|
||||
|
||||
resource "azurerm_app_service" "webAppFrontend" {
|
||||
name = "${var.siteName}"
|
||||
location = "${azurerm_resource_group.webAppMySqlRg.location}"
|
||||
resource_group_name = "${azurerm_resource_group.webAppMySqlRg.name}"
|
||||
tags = "${azurerm_resource_group.webAppMySqlRg.tags}"
|
||||
|
||||
app_service_plan_id = "${azurerm_app_service_plan.webAppFrontend.id}"
|
||||
connection_string {
|
||||
name = "DefaultConnect"
|
||||
type = "MySql"
|
||||
value = "Database=${azurerm_mysql_database.webAppBackend.name};Data Source=${azurerm_mysql_server.webAppBackend.fqdn};User Id=${var.administratorLogin}@${azurerm_mysql_server.webAppBackend.name};Password=${var.administratorLoginPassword}"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user