AAOPS I can deploy a Linux container on an App Service with best practices as defaults
AAOPS I can set up a scalable Linux container App Service with deployment slots
Usage
module"app_service" {
source ="https://github.com/padok-team/terraform-azurerm-app-service-container-linux"
name ="test-app-service"
resource_group = {
name ="example-rg"
location ="francecentral"
}
# The `image` variable, and all app settings, are NOT tracked by Terraform.# Any changes to these will not be reflected in the Terraform state.# Note that, in order to use a Docker Hub image, you need to set an app setting# DOCKER_REGISTRY_SERVER_URL = https://index.docker.io# which is set by default when no app settings are specified.
image ="index.docker.io/kennethreitz/httpbin:latest"
client_cert_enabled =false
}
Docker image to deploy at App Service generation. Will only be defined on the first run, and will be ignored by Terraform on subsequent runs. Your application configuration should be separated from your infrastructure configuration.