Giter VIP home page Giter VIP logo

terraform-azurerm-function-app-consumption's Introduction

terraform-azurerm-function-app-consumption

Create a Function App in Azure

This terraform module deploys a Function App on consumption app service plan in Azure.

Installs following resources

  • Storage account
  • App service plan (Consumption)
  • Function app

Usage

resource "azurerm_resource_group" "image_resizer" {
  name     = "image-resizer-func-rg"
  location = "westeurope"
}

module "function_app" {
  source                   = "innovationnorway/function-app-consumption/azurerm"
  function_app_name        = "image-resizer-func"
  resource_group_name      = "${azurerm_resource_group.image_resizer.name}"
  location                 = "${azurerm_resource_group.image_resizer.location}"
  environment              = "lab"
  function_verion          = "beta"
  release                  = "release 2018-07-21.001"
  account_replication_type = "LRS"
  
  app_settings {
    "FUNCTIONS_WORKER_RUNTIME" = "dotnet"
  }

  tags {
      a       = "b",
      project = "image-resizing"
  }
}

Inputs

resource_group_name

The resource group where the resources should be created.

location

The azure datacenter location where the resources should be created.

function_app_name

The name for the function app. Without environment naming.

account_replication_type

The Storage Account replication type. See azurerm_storage_account module for posible values. Defaults to "LRS"

app_settings

Application settings to insert on creating the function app. Following updates will be ignored, and has to be set manually. Updates done on application deploy or in portal will not affect terraform state file.

tags

A map of tags to add to all resources Defaults to "westeurope"

tags

A map of tags to add to all resources. Release and Environment will be auto tagged.

environment

The environment where the infrastructure is deployed.

release

The release the deploy is based on.

function_version

The runtime version the function app should have. Defaults to "beta"

Outputs

identity

The MSI identities set on the function app. Returns a list of identities.

storage_account_name

The name of the storage account created for the function app.

storage_account_connection_string

The primary connection string to the storage account created for the function app.

storage_account_primary_access_key

The primary access key to the storage account created for the function app.

terraform-azurerm-function-app-consumption's People

Contributors

hfurubotten avatar najgel avatar

Watchers

 avatar

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.