diff --git a/CHANGELOG.md b/CHANGELOG.md index 10dadff..3282338 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,34 +1,42 @@ # Changelog -## [1.0.2](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/tree/1.0.2) (2022-11-24) +## [2.0.0](https://github.com/telekom-mms/terraform-azurerm-app-service/tree/2.0.0) (2023-11-16) -[Full Changelog](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/compare/1.0.1...1.0.2) +[Full Changelog](https://github.com/telekom-mms/terraform-azurerm-app-service/compare/1.0.2...2.0.0) + +**Closed issues:** + +- Dependency Dashboard [\#5](https://github.com/telekom-mms/terraform-azurerm-app-service/issues/5) + +## [1.0.2](https://github.com/telekom-mms/terraform-azurerm-app-service/tree/1.0.2) (2022-11-24) + +[Full Changelog](https://github.com/telekom-mms/terraform-azurerm-app-service/compare/1.0.1...1.0.2) **Implemented enhancements:** -- Add new resource static site [\#10](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/10) ([habr-mms](https://github.com/habr-mms)) +- Add new resource static site [\#10](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/10) ([habr-mms](https://github.com/habr-mms)) **Merged pull requests:** -- Update actions/checkout action to v3.1.0 [\#11](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/11) ([renovate[bot]](https://github.com/apps/renovate)) -- Update hashicorp/setup-terraform action to v2 [\#9](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/9) ([renovate[bot]](https://github.com/apps/renovate)) -- Update creyD/prettier\_action action to v4 [\#8](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/8) ([renovate[bot]](https://github.com/apps/renovate)) -- Update actions/checkout action to v3 [\#7](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/7) ([renovate[bot]](https://github.com/apps/renovate)) -- Update github-actions-x/commit action to v2.9 [\#6](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/6) ([renovate[bot]](https://github.com/apps/renovate)) +- Update actions/checkout action to v3.1.0 [\#11](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/11) ([renovate[bot]](https://github.com/apps/renovate)) +- Update hashicorp/setup-terraform action to v2 [\#9](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/9) ([renovate[bot]](https://github.com/apps/renovate)) +- Update creyD/prettier\_action action to v4 [\#8](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/8) ([renovate[bot]](https://github.com/apps/renovate)) +- Update actions/checkout action to v3 [\#7](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/7) ([renovate[bot]](https://github.com/apps/renovate)) +- Update github-actions-x/commit action to v2.9 [\#6](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/6) ([renovate[bot]](https://github.com/apps/renovate)) -## [1.0.1](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/tree/1.0.1) (2022-07-25) +## [1.0.1](https://github.com/telekom-mms/terraform-azurerm-app-service/tree/1.0.1) (2022-07-25) -[Full Changelog](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/compare/1.0.0...1.0.1) +[Full Changelog](https://github.com/telekom-mms/terraform-azurerm-app-service/compare/1.0.0...1.0.1) **Merged pull requests:** -- Update creyD/prettier\_action action to v3.3 [\#4](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/4) ([renovate[bot]](https://github.com/apps/renovate)) -- Update actions/checkout action to v2.4.2 [\#3](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/3) ([renovate[bot]](https://github.com/apps/renovate)) -- add example and renovate config [\#1](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/pull/1) ([michaelamattes](https://github.com/michaelamattes)) +- Update creyD/prettier\_action action to v3.3 [\#4](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/4) ([renovate[bot]](https://github.com/apps/renovate)) +- Update actions/checkout action to v2.4.2 [\#3](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/3) ([renovate[bot]](https://github.com/apps/renovate)) +- add example and renovate config [\#1](https://github.com/telekom-mms/terraform-azurerm-app-service/pull/1) ([michaelamattes](https://github.com/michaelamattes)) -## [1.0.0](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/tree/1.0.0) (2022-07-22) +## [1.0.0](https://github.com/telekom-mms/terraform-azurerm-app-service/tree/1.0.0) (2022-07-22) -[Full Changelog](https://github.com/T-Systems-MMS/terraform-azurerm-app-service/compare/e5a19391336c8e71c678e167fbdb0736ade8e816...1.0.0) +[Full Changelog](https://github.com/telekom-mms/terraform-azurerm-app-service/compare/e5a19391336c8e71c678e167fbdb0736ade8e816...1.0.0) diff --git a/README.md b/README.md new file mode 100644 index 0000000..8b7cf09 --- /dev/null +++ b/README.md @@ -0,0 +1,154 @@ + +# app_service + +This module manages the hashicorp/azurerm app service resources. +For more information see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs > app service + +_<-- This file is autogenerated, please do not change. -->_ + +## Requirements + +| Name | Version | +|------|---------| +| terraform | >=1.5 | +| azurerm | >=3.79 | + +## Providers + +| Name | Version | +|------|---------| +| azurerm | >=3.79 | + +## Resources + +| Name | Type | +|------|------| +| azurerm_linux_function_app.linux_function_app | resource | +| azurerm_service_plan.service_plan | resource | +| azurerm_static_site.static_site | resource | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| linux_function_app | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | +| service_plan | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | +| static_site | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| linux_function_app | Outputs all attributes of resource_type. | +| service_plan | Outputs all attributes of resource_type. | +| static_site | Outputs all attributes of resource_type. | +| variables | Displays all configurable variables passed by the module. __default__ = predefined values per module. __merged__ = result of merging the default values and custom values passed to the module | + +## Examples + +Minimal configuration to install the desired resources with the module + +```hcl +module "storage" { + source = "registry.terraform.io/telekom-mms/storage/azurerm" + storage_account = { + stmms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + } + } +} + +module "app_service" { + source = "registry.terraform.io/telekom-mms/app-service/azurerm" + service_plan = { + asp-mms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + sku_name = "B1" + } + } + static_site = { + stapp-mms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + } + } + linux_function_app = { + func-mms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + service_plan_id = module.app_service.service_plan["asp-mms"].id + storage_account_name = module.storage.storage_account["stmms"].name + } + } +} +``` + +Advanced configuration to install the desired resources with the module + +```hcl +module "app_service" { + source = "registry.terraform.io/telekom-mms/app-service/azurerm" + service_plan = { + asp-mms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + sku_name = "B1" + tags = { + project = "mms-github" + environment = terraform.workspace + managed-by = "terraform" + } + } + } + static_site = { + stapp-mms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + identity = { + type = "SystemAssigned" + } + app_settings = { + NAME = "mms" + } + tags = { + project = "mms-github" + environment = terraform.workspace + managed-by = "terraform" + } + } + } + func-mms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + service_plan_id = module.app_service.service_plan["asp-mms"].id + storage_account_name = module.storage.storage_account["stmms"].name + site_config = { + application_stack = { + node_version = 18 + } + app_service_logs = { + retention_period_days = 7 + } + ip_restriction = { + mms-local = { + ip_address = "172.0.0.2/32" + headers = { + x_fd_health_probe = [1] + } + } + } + } + identity = { + type = "SystemAssigned" + } + tags = { + project = "mms-github" + environment = terraform.workspace + managed-by = "terraform" + } + } +} +``` + \ No newline at end of file