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.
Phiên bản
Nguồn gốc
- Digest nội dung
- sha256:ad769f8e0481787630ae36de869a618d8e5f0628fdd9f5760c795135a5c0b867
- Đã xuất bản
- 2026-11-10T10:28:53Z
- Danh tính ký
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
Chữ ký
- Chính thứcapplication/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:3ae8a5a9911c59bc476a76efc09a3177031717d6bbc1ae6151526408668159e8
Tham chiếu ở phiên bản này
oci://hub.aggrega.ai/recipe/terraform/server-cloud-run:1.0.0- Đích
- —
- Triển khai
- core/compute/server:1.0.0
Cung cấp
Các mẫu con trỏ xác định mà công thức này nối cho bên tiêu thụ.
Chưa khai báo mẫu provides nào.
Workload
Chưa khai báo mẫu khối lượng công việc nào.
Giá trị cục bộ
| Tên | Mẫu |
|---|---|
| cpu_millicores | {{- $c := toString (optional (optional .infra "compute" dict) "cpu" "") -}} {{- if regexMatch `^[0-9]+m
|
| memory_mib | {{- $m := toString (optional (optional .infra "compute" dict) "memory" "") -}} {{- if regexMatch `^[0-9]+Mi
|
| 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 }} |
Ánh xạ values
Chưa khai báo ánh xạ values nào.
Quan hệ
Các cạnh có kiểu đi tới và đi từ các thực thể đã xuất bản khác. Một tham chiếu không có đích đã xuất bản được hiển thị là một cạnh bị đứt thay vì một liên kết.
Sử dụng
- triển khaitriển khai
core/compute/server:1.0.0
Được sử dụng bởi
Không có gì trong danh mục phụ thuộc vào thực thể này.