forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
managed-policy.yml
42 lines (42 loc) · 1001 Bytes
/
managed-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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建RAM用户并绑定管理策略,策略允许所有操作于所有资源。
en: Create RAM users and attach management policies, with policies permitting all
operations on all resources.
Parameters:
UserName:
Type: String
Description: Specifies the user name, containing up to 64 characters.
PolicyName:
Type: String
Description: Policy name.
Resources:
SubAccount:
Type: ALIYUN::RAM::User
Properties:
UserName:
Ref: UserName
ManagePolicy:
Type: ALIYUN::RAM::ManagedPolicy
Properties:
PolicyName:
Ref: PolicyName
PolicyDocument:
Version: '1'
Statement:
- Action:
- '*'
Resource:
- '*'
Effect: Allow
Users:
- Fn::GetAtt:
- SubAccount
- UserName
DependsOn: SubAccount
Outputs:
PolicyName:
Value:
Fn::GetAtt:
- ManagePolicy
- PolicyName