forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ComfyUI-by-fc.yml
103 lines (103 loc) · 2.92 KB
/
ComfyUI-by-fc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
ROSTemplateFormatVersion: '2015-09-01'
Description:
en: Deploy ComfyUI through Function Computing to implement an AIGC image generation system.
zh-cn: 通过函数计算部署ComfyUI以实现一个AIGC图像生成系统。
Parameters:
AppName:
Type: String
Label:
en: Application Name
zh-cn: 应用名称
AssociationProperty: AutoCompleteInput
AssociationPropertyMetadata:
Length: 6
Prefix: fc-comfyui-
CharacterClasses:
- Class: lowercase
min: 1
CommonName:
Type: String
Default: video-website
Resources:
AliyunFCServerlessDevsRole:
Type: ALIYUN::RAM::Role
Properties:
RoleName: AliyunFCServerlessDevsRole
Description: 应用中心需要您的角色中包含应用所需策略,推荐创建并使用系统默认角色 AliyunFCServerlessDevsRole。
AssumeRolePolicyDocument:
Version: '1'
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service:
- fc.aliyuncs.com
MaxSessionDuration: 3600
IgnoreExisting: true
DeletionForce: true
PolicyAttachments:
System:
- AliyunNASFullAccess
- AliyunFCFullAccess
- AliyunFCServerlessDevsRolePolicy
- AliyunOSSReadOnlyAccess
- AliyunECSReadOnlyAccess
- AliyunVPCReadOnlyAccess
- AliyunLogReadOnlyAccess
- AliyunVPCFullAccess
- AliyunEventBridgeFullAccess
- AliyunFCDefaultRolePolicy
AliyunFcRole:
Type: ALIYUN::RAM::Role
Properties:
RoleName: AliyunFcDefaultRole
Description: Service Role for FC to operate other resource
AssumeRolePolicyDocument:
Version: '1'
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service:
- fc.aliyuncs.com
MaxSessionDuration: 3600
DeletionForce: true
IgnoreExisting: true
PolicyAttachments:
System:
- AliyunFCDefaultRolePolicy
- AliyunOSSFullAccess
Application:
Type: ALIYUN::FC::Application
Properties:
Name:
Ref: AppName
RoleARN:
Fn::GetAtt:
- AliyunFCServerlessDevsRole
- Arn
Parameters:
template: 58
serviceName:
Fn::Sub: fc-comfyui-${ALIYUN::StackId}
functionName:
Fn::Sub: fc-comfyui-${ALIYUN::StackId}
parameters-region:
Ref: ALIYUN::Region
region:
Ref: ALIYUN::Region
parameters-functionName:
Fn::Sub: fc-comfyui-${ALIYUN::StackId}
parameters-type: 'sd1.5'
roleArn:
Fn::GetAtt:
- AliyunFcRole
- Arn
Template: [email protected]
AutoDeploy: true
Metadata:
ALIYUN::ROS::Interface:
TemplateTags:
- acs:technical-solution:ai:通过函数计算部署ComfyUI以实现一个AIGC图像生成系统-tech_solu_144
Hidden:
- CommonName