forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new Linux and Windows App service and Linux Function (#39)
Added linux/windows apps and linux function new modules
- Loading branch information
1 parent
15545a2
commit 790b0ba
Showing
36 changed files
with
2,860 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
examples/webapps/appservice/111-windows-web-app/configuration.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
global_settings = { | ||
default_region = "region1" | ||
regions = { | ||
region1 = "australiaeast" | ||
} | ||
inherit_tags = true | ||
tags = { | ||
env = "to_be_set" | ||
} | ||
} | ||
|
||
resource_groups = { | ||
windows_webapp_simple = { | ||
name = "windows-webapp-simple" | ||
region = "region1" | ||
} | ||
} | ||
|
||
# By default asp1 will inherit from the resource group location | ||
app_service_plans = { | ||
asp1 = { | ||
resource_group_key = "windows_webapp_simple" | ||
name = "asp-simple" | ||
|
||
sku = { | ||
tier = "Standard" | ||
size = "S1" | ||
} | ||
tags = { | ||
env = "uat" | ||
} | ||
} | ||
} | ||
|
||
windows_web_apps = { | ||
windows_web_app_simple = { | ||
name = "windows-web-app-simple" | ||
resource_group_key = "windows_webapp_simple" | ||
app_service_plan_key = "asp1" | ||
|
||
settings = { | ||
https_only = "true" | ||
always_on = "false" | ||
|
||
site_config = { | ||
ftps_state = "Disabled" | ||
always_on = "false" | ||
|
||
application_stack = { | ||
current_stack = "dotnetcore" | ||
dotnet_core_version = "v4.0" | ||
} | ||
} | ||
} | ||
app_settings = { | ||
example_setting = "example-setting" | ||
} | ||
} | ||
} |
106 changes: 106 additions & 0 deletions
106
examples/webapps/appservice/112-windows-web-app-private/configuration.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
global_settings = { | ||
default_region = "region1" | ||
regions = { | ||
region1 = "australiaeast" | ||
} | ||
inherit_tags = true | ||
tags = { | ||
env = "to_be_set" | ||
} | ||
} | ||
|
||
resource_groups = { | ||
windows_webapp_private = { | ||
name = "windows-webapp-private" | ||
region = "region1" | ||
} | ||
} | ||
|
||
# By default asp1 will inherit from the resource group location | ||
app_service_plans = { | ||
asp1 = { | ||
resource_group_key = "windows_webapp_private" | ||
name = "asp-simple" | ||
|
||
sku = { | ||
tier = "Standard" | ||
size = "S1" | ||
} | ||
tags = { | ||
env = "uat" | ||
} | ||
} | ||
} | ||
|
||
|
||
vnets = { | ||
demo_vnet = { | ||
resource_group_key = "windows_webapp_private" | ||
region = "region1" | ||
vnet = { | ||
name = "demo-vnet" | ||
address_space = ["10.0.0.0/8"] | ||
} | ||
|
||
subnets = { | ||
demo_subnet = { | ||
name = "demo-subnet" | ||
cidr = ["10.0.1.0/24"] | ||
#nsg_key = "" | ||
enforce_private_link_endpoint_network_policies = true | ||
delegation = { | ||
name = "serverFarms" | ||
service_delegation = "Microsoft.Web/serverFarms" | ||
actions = [ | ||
"Microsoft.Network/virtualNetworks/subnets/action" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
windows_web_apps = { | ||
windows_web_app_private = { | ||
name = "windows-web-app-private" | ||
resource_group_key = "windows_webapp_private" | ||
app_service_plan_key = "asp1" | ||
|
||
settings = { | ||
https_only = "true" | ||
always_on = "false" | ||
public_network_access_enabled = false | ||
virtual_network_subnet = { | ||
subnet_key = "demo_subnet" | ||
vnet_key = "demo_vnet" | ||
#lz_key = "" | ||
} | ||
site_config = { | ||
ftps_state = "Disabled" | ||
always_on = "false" | ||
|
||
application_stack = { | ||
current_stack = "dotnetcore" | ||
dotnet_core_version = "v4.0" | ||
} | ||
ip_restriction_default_action = "Deny" | ||
ip_restriction = [ | ||
{ | ||
name = "demo-iprestriction" | ||
priority = "100" | ||
ip_address = "192.168.1.0/24" | ||
# virtual_network_subnet = { | ||
# subnet_key = "demo_subnet" | ||
# vnet_key = "demo_vnet" | ||
# lz_key = "" | ||
# } | ||
action = "Allow" | ||
} | ||
] | ||
} | ||
} | ||
app_settings = { | ||
example_setting = "example-setting" | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
examples/webapps/appservice/113-linux-web-app/configuration.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
global_settings = { | ||
default_region = "region1" | ||
regions = { | ||
region1 = "australiaeast" | ||
} | ||
inherit_tags = true | ||
tags = { | ||
env = "to_be_set" | ||
} | ||
} | ||
|
||
resource_groups = { | ||
linux_webapp_simple = { | ||
name = "linux-webapp-simple" | ||
region = "region1" | ||
} | ||
} | ||
|
||
# By default asp1 will inherit from the resource group location | ||
app_service_plans = { | ||
asp1 = { | ||
resource_group_key = "linux_webapp_simple" | ||
name = "asp-simple" | ||
|
||
sku = { | ||
tier = "Standard" | ||
size = "S1" | ||
} | ||
tags = { | ||
env = "uat" | ||
} | ||
} | ||
} | ||
|
||
linux_web_apps = { | ||
linux_web_app_simple = { | ||
name = "linux-web-app-simple" | ||
resource_group_key = "linux_webapp_simple" | ||
app_service_plan_key = "asp1" | ||
|
||
settings = { | ||
https_only = "true" | ||
always_on = "false" | ||
|
||
site_config = { | ||
ftps_state = "Disabled" | ||
always_on = "false" | ||
|
||
application_stack = { | ||
java_server = "JAVA" | ||
java_version = "11" | ||
} | ||
} | ||
} | ||
app_settings = { | ||
example_setting = "example-setting" | ||
} | ||
} | ||
} |
Oops, something went wrong.