img studio
ImgStudio for Imagen 3
Vertex AI
> Enable all recommended APIs
europe-west9
)YOUR_COMPANY-imgstudio-output
YOUR_COMPANY-imgstudio-library
YOUR_COMPANY-imgstudio-export-config
export-fields-options.json
是一個特定於您的使用情況的配置文件,您可以在存儲庫中找到該示例,其目的是設置您想要為生成的內容設置的所需元數據“contextAuthorTeam”
)及其標籤(例如: “In which team are you?”
) 、其名稱(例如: “Associated team(s)”
)、其標籤isMandatory (例如: true
)以及最後的選項2 設定Cloud Build觸發器
YOUR_COMPANY-imgstudio
Manual invocation
Watch
> Custom
> Releases
>“套用”Cloud Build configuration file (yaml or json)
/cloudbuild.yaml
_NEXT_PUBLIC_EXPORT_FIELDS_OPTIONS_URI
gs://YOUR_COMPANY-imgstudio-export-config/export-fields-options.json
_NEXT_PUBLIC_GCS_BUCKET_LOCATION
europe-west9
_NEXT_PUBLIC_VERTEX_API_LOCATION
europe-west9
_NEXT_PUBLIC_GEMINI_MODEL
= gemini-1.5-flash-001
_NEXT_PUBLIC_OUTPUT_BUCKET
YOUR_COMPANY-imgstudio-output
_NEXT_PUBLIC_TEAM_BUCKET
YOUR_COMPANY-imgstudio-library
_NEXT_PUBLIC_PRINCIPAL_TO_USER_FILTERS
admin-,@company.com
以便可以提取使用者 ID jdupont_NEXT_PUBLIC_EDIT_ENABLED
(新!)false
”_NEXT_PUBLIC_EDIT_MODEL
(新!)_NEXT_PUBLIC_SEG_MODEL
(新!)[email protected]
Artifact Registry Writer
和Logs Writer
Internal
如果您希望將 IAP 使用者限制在您的GCP 組織域中)External
如果您的某些使用者位於與您的 GCP 組織不同的網域)YOUR_COMPANY-imgstudio
YOUR_COMPANY_DOMAIN
YOUR_COMPANY-imgstudio-sa
Cloud Datastore User
Logs Writer
Secret Manager Secret Accessor
Service Account Token Creator
Storage Object Creator
Storage Object Viewer
Vertex AI User
Deploy one revision from an existing container image
latest
鏡像YOUR_COMPANY-imgstudio-app
europe-west9
)Internal
> Allow traffic from external Application Load Balancers
3000
YOUR_COMPANY-imgstudio-sa
gcloud beta services identity create --service=iap.googleapis.com --project=PROJECT_ID
[email protected]
Cloud Run Invoker
角色授予先前建立/取得的IAP 服務帳號imgstudio
imgstudio.YOUR_COMPANY_DOMAIN
Off
Off
dig imgstudio.YOUR_COMPANY_DOMAIN NS +short
Application Load Balancer (HTTP/HTTPS)
Public Facing (external)
Global
Global external Application Load Balancer
YOUR_COMPANY-imgstudio-lb
HTTPS
Ephemeral
(您也可以設定靜態 IP)YOUR_COMPANY-imgstudio-cert
imgstudio.YOUR_COMPANY_DOMAIN
YOUR_COMPANY-imgstudio-back
Serverless Network Endpoint Group
> 完成YOUR_COMPANY-imgstudio-neg
europe-west9
)YOUR_COMPANY-imgstudio-app
> 創建Off
YOUR_COMPANY-imgstudio-lb
imgstudio
imgstudio.YOUR_COMPANY_DOMAIN
YOUR_COMPANY-imgstudio-back
IAP-secured Web App User
,> 儲存Native mode
,> 繼續(default)
(保持這種方式非常重要)Region
europe-west9
)Production rules
metadata
combinedFilters
,索引選項 1: Array contains
timestamp
,索引選項 2: Descending
__name__
,索引選項 3: Descending
Collection
https://console.firebase.google.com/project/PROJECT_ID/firestore/databases/-default-/rules
YOUR_COMPANY
& PROJECT_ID
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, get, list, create, update: if get(/databases/$(database)/documents/request.auth.uid).data.serviceAccount == 'YOUR_COMPANY-imgstudio-sa@PROJECT_ID.iam.gserviceaccount.com';
allow delete: if false;
}}}