Эта страница переведена автоматически. Читать английский оригинал.

Recipe

server-cloud-run

The generic long-running server primitive as one Cloud Run service running the Release's image on infra.port, through a Terraform module kept beside this Recipe. Reach for it in a Google Cloud project with a VPC network; for terraform/server-ecs or cloudformation/server-ecs in an AWS account, and helm/server on Kubernetes. Its ingress is internal: VPC networks in the project, a Shared VPC network it sends traffic to and an internal load balancer reach it, the internet does not. No invoker binding is emitted, so only a caller the operator grants the Cloud Run Invoker role gets through — reached from inside, as a Kubernetes server is. The project, region, VPC network and service account are the operator's, each required under infra.overrides; a subnet and network tags are optional. Only the service is emitted — no service account, IAM binding, network, firewall rule, load balancer or domain mapping, 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. Neither may dictate a name Cloud Run reserves or refuses; file, arg and other entries are refused by name. Scaling is manual, at infra.replicas instances. The container runs at the smallest whole-vCPU size meeting infra.compute.cpu and infra.compute.memory, in the second-generation environment at Cloud Run's default concurrency, so the Component's defaults run at 1 vCPU and 512 MiB. GoogleCloudPlatform/cloud-run/google is not sourced: at v0.34.2, its newest, it caps hashicorp/google below 8, excluding the range every Google body here declares.

Версия

1.0.01.1.0

Происхождение

ОфициальныйПодписано идентичностью подписи, которую этот каталог признаёт официальным издателем.
Дайджест содержимого
sha256:96b4382c8cffc47e496f494d34c2947833aa9bf71310c6af9e6ac42e29d61fbc
Опубликовано
2026-11-15T08:09:48Z
Идентичность подписи
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

Подпись

  • Официальныйapplication/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:699045000f0c0c94f8e85848459f073f3d12dffc78bab03781b2863d942c9ec5

Ссылка на эту версию

oci://hub.aggrega.ai/recipe/terraform/server-cloud-run:1.1.0
Цель
—
Реализует
core/compute/server:1.1.0

Предоставляет

Детерминированные шаблоны указателей, которые этот рецепт связывает для потребителей.

Шаблоны provides не объявлены.

Workload

Шаблон рабочей нагрузки не объявлен.

Локальные значения

ИмяШаблон
cpu_millicores{{- $c := toString (optional (optional .infra "compute" dict) "cpu" "") -}} {{- if regexMatch `^[0-9]+m server-cloud-run 1.1.0 · Каталог Aggrega $c -}}{{ atoi (trimSuffix "m" $c) }} {{- else if regexMatch `^[0-9]+(\.[0-9]{1,3})? server-cloud-run 1.1.0 · Каталог 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-cloud-run 1.1.0 · Каталог Aggrega $m -}}{{ atoi (trimSuffix "Mi" $m) }} {{- else if regexMatch `^[0-9]+Gi server-cloud-run 1.1.0 · Каталог 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 1 512 4096) (list 2 512 8192) (list 4 2048 16384) (list 6 4096 24576) (list 8 4096 32768) -}} {{- if and (not $found) (ge (mul (index . 0) 1000) $mc) (ge (index . 2) $mib) -}} {{- $found = printf "%d/%d" (index . 0) (max (index . 1) $mib) -}} {{- 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 }}Mi{{ end }}

Сопоставление values

Сопоставление values не объявлено.

Связи

Типизированные рёбра к другим опубликованным сущностям и от них. Ссылка без опубликованной цели отображается как разорванное ребро, а не как ссылка.

Использует

Используется в

Ничто в каталоге не зависит от этой сущности.

Справочник по понятию Recipe →

Каталог Aggrega — открытый указатель компонентов, функций, рецептов и плагинов, которые их рендерят.

Создано на общей дизайн-системе Aggrega.

Конфиденциальность