integration/basic/main.tf (30 lines of code) (raw):
resource "azurerm_container_group" "example" {
location = azurerm_resource_group.example.location
name = "example-continst"
os_type = "Linux"
resource_group_name = azurerm_resource_group.example.name
dns_name_label = "aci-label"
ip_address_type = "Public"
tags = {
environment = "testing"
}
container {
cpu = "0.5"
image = "mcr.microsoft.com/azuredocs/aci-helloworld:latest"
memory = "1.5"
name = "hello-world"
ports {
port = 443
protocol = "TCP"
}
}
container {
cpu = "0.5"
image = "mcr.microsoft.com/azuredocs/aci-tutorial-sidecar"
memory = "1.5"
name = "sidecar"
}
depends_on = [
azurerm_resource_group.example
]
}