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

Recipe

server-ecs

The generic long-running server primitive as one Amazon ECS service on Fargate, running infra.replicas tasks of the Release's image, rendered as a CloudFormation fragment the provider assembles into the boundary's stack. Reach for it where the target is an AWS account with an ECS cluster and a VPC; reach for helm/server on a Kubernetes cluster. The cluster, subnets, security groups and execution role come from the operator, under infra.overrides, and each is required; a task role, a public IP, a load balancer target group and a log group are optional, and nothing is emitted for one left unset. Only a task definition and a service are emitted — no cluster, role, security group, log group or load balancer, each of which the operator already runs. No container health check is declared, because ECS runs one inside an image this Recipe does not name; a target group's own check is the operator's. Each env entry an edge's inject block, or the component's own, dictates becomes an entry of the container's environment under that name, its value written whole, so a neighbour's address arrives as an Fn::GetAtt in the same stack and as an Fn::ImportValue from another. A file entry is refused by name, as a Fargate task definition writes no file, and so are an arg entry, as no command line is rendered, and any other mechanism. The task runs at the smallest Fargate size meeting both infra.compute.cpu and infra.compute.memory, so the Component's defaults run at 0.25 vCPU and 512 MiB. It is written as a fragment, as the catalog writes its CloudFormation Recipes, rather than sourced from a published template. AWS App Runner is not used: it is no longer open to new customers.

Versão

1.0.01.1.0

Proveniência

OficialAssinado por uma identidade de assinatura que este catálogo reconhece como editor oficial.
Digest do conteúdo
sha256:9755e051b563ad28d06a16ed6ce1408f2fcff80c02f88afa31c9fb061acc9bd6
Publicado
2026-11-10T10:18:00Z
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:e09f39e4a6af10347a460ee79375294f7ba59debc2cae6f9e044eb89a08c670c

Referência nesta versão

oci://hub.aggrega.ai/recipe/cloudformation/server-ecs:1.0.0
Destino
—
Implementa
core/compute/server:1.0.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
logical_id{{ capitalizedWords .context.instance_id }}
cpu_millicores{{- $c := toString (optional (optional .infra "compute" dict) "cpu" "") -}} {{- if regexMatch `^[0-9]+m server-ecs 1.0.0 · Catálogo Aggrega $c -}}{{ atoi (trimSuffix "m" $c) }} {{- else if regexMatch `^[0-9]+(\.[0-9]{1,3})? server-ecs 1.0.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-ecs 1.0.0 · Catálogo Aggrega $m -}}{{ atoi (trimSuffix "Mi" $m) }} {{- else if regexMatch `^[0-9]+Gi server-ecs 1.0.0 · Catálogo Aggrega $m -}}{{ mul (atoi (trimSuffix "Gi" $m)) 1024 }} {{- end -}}
task_size{{- $found := "" -}} {{- if and .locals.cpu_millicores .locals.memory_mib -}} {{- $mc := atoi .locals.cpu_millicores -}}{{- $mib := atoi .locals.memory_mib -}} {{- range list (list 256 (list 512 1024 2048)) (list 512 (untilStep 1024 4097 1024)) (list 1024 (untilStep 2048 8193 1024)) (list 2048 (untilStep 4096 16385 1024)) (list 4096 (untilStep 8192 30721 1024)) (list 8192 (untilStep 16384 61441 4096)) (list 16384 (untilStep 32768 122881 8192)) (list 32768 (list 61440 122880 249856)) -}} {{- $cpu := index . 0 -}} {{- if and (not $found) (ge (mul $cpu 1000) (mul $mc 1024)) -}} {{- range index . 1 }}{{ if and (not $found) (ge . $mib) }}{{ $found = printf "%d/%d" $cpu . }}{{ end }}{{ end -}} {{- end -}} {{- end -}} {{- end -}} {{- $found -}}
task_cpu{{ if .locals.task_size }}{{ index (splitList "/" .locals.task_size) 0 }}{{ end }}
task_memory{{ if .locals.task_size }}{{ index (splitList "/" .locals.task_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 é apresentada como uma aresta quebrada em vez de uma ligação.

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 partilhado do Aggrega.

Privacidade