From 66f41a61df91cb8e9929f15f1dd1922e080e20ae Mon Sep 17 00:00:00 2001 From: qitan Date: Tue, 7 Nov 2023 15:37:18 +0800 Subject: [PATCH] fix pai service template --- documents/solution/ai/pai-ai-painting-solution.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/documents/solution/ai/pai-ai-painting-solution.yml b/documents/solution/ai/pai-ai-painting-solution.yml index d30c1936..94fc435b 100644 --- a/documents/solution/ai/pai-ai-painting-solution.yml +++ b/documents/solution/ai/pai-ai-painting-solution.yml @@ -124,12 +124,22 @@ Resources: Ref: NasAccessGroup DependsOn: - NasAccessRule + RandomString: + Type: ALIYUN::RandomString + Properties: + length: 10 + character_classes: + - class: lowercase + min: 1 + - class: digits + min: 1 Pai-Eas: Type: ALIYUN::PAI::Service Properties: ServiceConfig: metadata: - name: sdwebui + name: + Fn::Sub: sdwebui_${RandomString.value} instance: 1 type: SDCluster enable_webservice: true @@ -172,4 +182,4 @@ Metadata: - ZoneId - InstanceType TemplateTags: - - acs:technical-solution:ai:PAI AI绘画解决方案 + - acs:technical-solution:ai:使用PAI完成Stable Diffusion WebUI多版本个性化部署服务