Code Monkey home page Code Monkey logo

terraform-azurerm-app-service's Introduction

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

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

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"
    }
  }
}

terraform-azurerm-app-service's People

Contributors

michaelamattes avatar renovate[bot] avatar rndmh3ro avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

terraform-azurerm-app-service's Issues

setting application_stack requires empty docker {} block

Description

When adding a setting for application stak

application_stack = {
  node_version = 16
}

I ran into failures due to trying to access properties of docker, which is being null

workaround is to assign an empty docker{} block

application_stack = {
  node_version = 16
  docker = {
  }
}

Reproduction steps

  1. add an application stack like above

Current Behavior

results in a failure

Expected Behavior

only required settings must be provided

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/codespell.yml
.github/workflows/linting.yml
.github/workflows/release.yml
.github/workflows/settings.yml
.github/workflows/terrascan.yml
.github/workflows/terratest.yml
terraform
providers.tf
versions.tf
  • azurerm >=3.79
  • hashicorp/terraform >=1.5

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.