forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage-vpc-vswitch-policy.yml
101 lines (100 loc) · 2.42 KB
/
manage-vpc-vswitch-policy.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建RAM策略,授权管理指定区域VSwitch的查看、操作及绑定解绑路由表权限。
en: Create a RAM policy to authorize the management of specified region VSwitches,
including viewing, operating, and binding/unbinding route table permissions.
Parameters:
Region:
Type: String
Label:
en: Region ID
zh-cn: 地域
Description:
en: You can create/delete/bind subnet route/unbind subnet route for the VSwitch
in this Region, and only have the view permission for the VSwitch in other
Regions.
zh-cn: 可以对该地域下的VSwitch进行创建/删除/绑定子网路由/解绑子网路由的操作,对于其它地域的VSwitch只有查看权限。
Default: cn-hangzhou
AllowedValues:
- cn-qingdao
- cn-beijing
- cn-zhangjiakou
- cn-huhehaote
- cn-hangzhou
- cn-shanghai
- cn-shenzhen
- cn-hongkong
- ap-northeast-1
- ap-southeast-1
- ap-southeast-2
- ap-southeast-3
- ap-southeast-5
- ap-south-1
- us-east-1
- us-west-1
- me-east-1
- eu-central-1
- cn-chengdu
- eu-west-1
- cn-heyuan
Resources:
ManageSingleRegionVSwitchPolicy:
Type: ALIYUN::RAM::ManagedPolicy
Properties:
PolicyDocument:
Statement:
- Action:
- vpc:*Describe*
- vpc:*VSwitch*
- vpc:*RouteTable*
Effect: Allow
Resource:
- Fn::Sub: acs:vpc:${Region}:*:*/*
- Action:
- ecs:*Describe*
Effect: Allow
Resource:
- '*'
Version: '1'
PolicyName:
Fn::Sub: ManageSingleRegionVSwitch-${ALIYUN::StackId}
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- Region
Label:
default: RAM
TemplateTags:
- acs:example:安全:对VPC中VSwitch的管理授权
ALIYUN::ROS::Composer:
fb091287:
Rect:
- 282
- 212
- 40
- 100
- 1
- 0
ResT: Composer::ROSParameter::AlibabaCloud
8ad06043:
Parent: fb091287
Rect:
- 222
- 144
- 60
- 150
- 2
- 0
ResT: Composer::ROSParameter::Region
614ded46:
Res:
- ManageSingleRegionVSwitchPolicy
Parent: 8ad06043
Rect:
- 40
- 40
- 161
- 202
- 3
- 0