Skip to content

Demonstrates how to build, provision and deploy an Azure function using Gradle and Terraform

Notifications You must be signed in to change notification settings

wiebeck/azure-terraform-function-demo

Repository files navigation

Prerequisites

  • Azure Subscription
  • Azure CLI tool (az)
  • Terraform installed -> download

Build the function deployment using Gradle

  1. copy local.settings.json.sample to local.settings.json
  2. run ./gradlew azureFunctionsPackageZip

Provision infrastructure and deploy function

  1. modify infrastructure/variables.tf to your needs (e.g. choose a different prefix)
  2. login to Azure: az login
  3. change to infrastructure and run:
terraform init
terraform apply

Done.

About

Demonstrates how to build, provision and deploy an Azure function using Gradle and Terraform

Topics

Resources

Stars

Watchers

Forks