Skip to content

Azure Container App deployment via Terraform, in one single file 💙

License

Notifications You must be signed in to change notification settings

danielbmeireles/aca-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Container App in One File

ACA example scenarios

Table of Contents

Description

This Terraform project deploys a basic Azure Container App infrastructure running a "Hello World" application. It creates a complete container app environment including:

  • Resource group for organizing Azure resources
  • Log Analytics workspace for monitoring and diagnostics
  • Container App environment for hosting containerized applications
  • Container App running a sample quickstart image with health probes (startup, liveness, and readiness)

The deployed container app is publicly accessible via HTTPS with auto-scaling capabilities (1-3 replicas) and includes comprehensive health monitoring to ensure high availability.


Terraform Configuration

Requirements

Name Version
terraform >= 1.0
azurerm ~> 4.50

Providers

Name Version
azurerm ~> 4.50

Modules

No modules.

Resources

Name Type
azurerm_container_app.main resource
azurerm_container_app_environment.main resource
azurerm_log_analytics_workspace.main resource
azurerm_resource_group.main resource

Inputs

Name Description Type Default Required
environment Environment name for resource naming string "demo" no
location Azure region for resources string "West Europe" no
project Project name for resource naming string "containerapp" no
tags Tags to apply to resources map(string)
{
"ManagedBy": "Terraform"
}
no

Outputs

Name Description
container_app_fqdn Fully qualified domain name of the Container App
container_app_name Name of the Container App
container_app_url URL to access the Container App
resource_group_name Name of the resource group

Made with 💙 with Terraform and VS Code

About

Azure Container App deployment via Terraform, in one single file 💙

Topics

Resources

License

Stars

Watchers

Forks