/eh-func-iac

Primary LanguageHCLMIT LicenseMIT

Overview

This repo helps developers to provision Azure resources with best practice for scaling out Azure Functions and Event Hub as real time processing application.

For understanding best practice, please read this my blog.

Prerequisites

Environment

This repo uses Terraform. I expect you to prepare your Terraform Environment from one of following methods.

Basic knowledge

How to run

  1. Update test.tfvars file. You should specify your unique app_name. Otherwise, Terraform may fail to provision because there are already same name resource in the world.
  2. cd terraform
  3. terraform init
  4. terraform plan -var-file="./env/test/test.tfvars"
  5. terraform apply -var-file="./env/test/test.tfvars" -auto-approve

Then, you can see provisioned resource in your Azure. Result

Appendix

  • I utilizes best practice for naming and tagging Azure resources. Please see this document for more detail.
  • You should consider to use KeyVault for keeping your connection string securely in production. I don't use it in this repo for understanding best practice easily.