forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple-oss-bucket.yml
56 lines (56 loc) · 1.33 KB
/
simple-oss-bucket.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
en: Create a OSS bucket.
zh-cn: 创建一个OSS Bucket。
Parameters:
BucketName:
Type: String
Label:
en: Bucket Name
zh-cn: 存储空间名称
Description:
en: Bucket name
zh-cn: Bucket 名称
ConstraintDescription:
en: Must begin and be end with a lowercase letter or number. The length is within
[3, 63]
zh-cn: 必须以小写字母或数字开头和结尾。长度在 [3, 63] 之内
Default: simple-oss-bucket
AllowedPattern: ^[a-z0-9]{1}[a-z0-9\-]{1,62}[a-z0-9]{1}$
AccessControl:
Type: String
Label:
en: Access Control
zh-cn: 读写权限
Description:
en: Set the access permission of the bucket
zh-cn: 设置Bucket读写权限
Default: private
AllowedValues:
- private
- public-read
- public-read-write
Resources:
MyBucket:
Type: ALIYUN::OSS::Bucket
Properties:
AccessControl:
Ref: AccessControl
BucketName:
Ref: BucketName
Outputs:
BucketDomainName:
Value:
Fn::GetAtt:
- MyBucket
- DomainName
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- BucketName
- AccessControl
Label:
default: OSS
TemplateTags:
- acs:example:存储:创建一个OSSBucket