Esta página foi traduzida automaticamente. Leia o original em inglês.

Recipe

server-container-apps

The generic long-running server primitive as one Azure Container Apps app running the Release's image on infra.port, through a Terraform module kept beside this Recipe. Reach for it in an Azure subscription with a Container Apps environment; for terraform/server-ecs or cloudformation/server-ecs in an AWS account, terraform/server-cloud-run on Google Cloud, and helm/server on Kubernetes. Its ingress is internal: only the other apps in its environment reach it, and it is not published at the environment's inbound address. The environment and resource group are the operator's, each required under infra.overrides; user-assigned identities and a private registry, its password read from Key Vault by reference, are optional. Only the app is emitted — no environment, network, identity, registry, Key Vault or log workspace, each the operator's. Each env entry an edge's inject block, or the component's own, dictates becomes a container variable of that name, written whole, so a neighbour's Terraform reference is evaluated by the engine, and each file entry a secret mounted alone at the path named. Neither may dictate a name Container Apps sets itself; arg and other entries are refused by name. The app runs exactly infra.replicas replicas at the smallest Consumption size meeting infra.compute.cpu and infra.compute.memory, so the Component's defaults run at 0.25 vCPU and 0.5 GiB. Azure/avm-res-app-containerapp/azurerm is not sourced: at 0.9.0, its newest, it calls Azure/avm-utl-interfaces/azure from the registry, which init fetches outside the pin. It takes hashicorp/azurerm 4 or 5, so it shares a terraform boundary with terraform/postgres-flexible-server or with the azurerm 5 Recipes.

Versão

1.0.01.1.0

Procedência

OficialAssinado por uma identidade de assinatura que este catálogo reconhece como publicador oficial.
Digest do conteúdo
sha256:7b81b782dde851a51c1631cb68974ef2dca041676456aa8177d1b1b8a1431274
Publicado
2026-11-15T08:09:50Z
Identidade de assinatura
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

Assinatura

  • Oficialapplication/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:ebc88f669fa7fe3a4d4a42a7adeb28a570bee626b9b9fb3ece86a4c050008f0b

Referência nesta versão

oci://hub.aggrega.ai/recipe/terraform/server-container-apps:1.1.0
Destino
—
Implementa
core/compute/server:1.1.0

Fornece

Modelos de ponteiros determinísticos que esta receita liga para os consumidores.

Nenhum modelo provides declarado.

Workload

Nenhum modelo de carga de trabalho declarado.

Variáveis locais

NomeModelo
cpu_millicores{{- $c := toString (optional (optional .infra "compute" dict) "cpu" "") -}} {{- if regexMatch `^[0-9]+m server-container-apps 1.1.0 · Catálogo Aggrega $c -}}{{ atoi (trimSuffix "m" $c) }} {{- else if regexMatch `^[0-9]+(\.[0-9]{1,3})? server-container-apps 1.1.0 · Catálogo Aggrega $c -}} {{- $p := splitList "." $c -}}{{- $f := 0 -}} {{- if eq (len $p) 2 }}{{ $f = atoi (substr 0 3 (printf "%s000" (index $p 1))) }}{{ end -}} {{- add (mul (atoi (index $p 0)) 1000) $f -}} {{- end -}}
memory_mib{{- $m := toString (optional (optional .infra "compute" dict) "memory" "") -}} {{- if regexMatch `^[0-9]+Mi server-container-apps 1.1.0 · Catálogo Aggrega $m -}}{{ atoi (trimSuffix "Mi" $m) }} {{- else if regexMatch `^[0-9]+Gi server-container-apps 1.1.0 · Catálogo Aggrega $m -}}{{ mul (atoi (trimSuffix "Gi" $m)) 1024 }} {{- end -}}
size{{- $found := "" -}} {{- if and .locals.cpu_millicores .locals.memory_mib -}} {{- $mc := atoi .locals.cpu_millicores -}}{{- $mib := atoi .locals.memory_mib -}} {{- range list (list 250 512 "0.25" "0.5Gi") (list 500 1024 "0.5" "1.0Gi") (list 750 1536 "0.75" "1.5Gi") (list 1000 2048 "1.0" "2.0Gi") (list 1250 2560 "1.25" "2.5Gi") (list 1500 3072 "1.5" "3.0Gi") (list 1750 3584 "1.75" "3.5Gi") (list 2000 4096 "2.0" "4.0Gi") (list 2250 4608 "2.25" "4.5Gi") (list 2500 5120 "2.5" "5.0Gi") (list 2750 5632 "2.75" "5.5Gi") (list 3000 6144 "3.0" "6.0Gi") (list 3250 6656 "3.25" "6.5Gi") (list 3500 7168 "3.5" "7.0Gi") (list 3750 7680 "3.75" "7.5Gi") (list 4000 8192 "4.0" "8.0Gi") -}} {{- if and (not $found) (ge (index . 0) $mc) (ge (index . 1) $mib) -}} {{- $found = printf "%s/%s" (index . 2) (index . 3) -}} {{- end -}} {{- end -}} {{- end -}} {{- $found -}}
size_cpu{{ if .locals.size }}{{ index (splitList "/" .locals.size) 0 }}{{ end }}
size_memory{{ if .locals.size }}{{ index (splitList "/" .locals.size) 1 }}{{ end }}

Mapeamento de valores

Nenhum mapeamento de valores declarado.

Relações

Arestas tipadas de e para outras entidades publicadas. Uma referência sem destino publicado é exibida como uma aresta quebrada em vez de um link.

Usa

Usado por

Nada no catálogo depende desta entidade.

Referência do conceito Recipe →

O catálogo Aggrega — um índice aberto de componentes, funcionalidades, receitas e dos plugins que os renderizam.

Criado com o sistema de design compartilhado do Aggrega.

Privacidade