Skip to content

Terraform AzureRM easy-to-use module to create an App Service (WebApp) that pulls the image from a Container Registry (ACR).

License

Notifications You must be signed in to change notification settings

epomatti/terraform-azurerm-appservice-acr-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-azurerm-appservice-acr-linux

This Terraform module will help you create an App Service on Azure that uses an image from a Container Registry (ACR) for Linxu containers.

Terraform AzureRM App Service specification.

Usage

module "app" {
  source  = "evandropomatti/appservice-acr-linux/azurerm"
  version = "0.3.1"
  
  name                = "app"
  location            = "southbrazil"
  resource_group_name = "my-resources"
  app_service_plan_id = azurerm_app_service_plan.default.id

  startup_command = "startup.sh"
  acr_image       = "contoso.azurecr.io/app:latest"
  acr_url         = "https://contosoregistry.azurecr.io" 
  acr_username    = "contosoregistry"
  acr_password    = var.CONTAINER_REGISTRY_PASSWORD
  
  always_on       = true

  tags = {
      environment = "dev"
  }
}