forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
role.yml
39 lines (39 loc) · 824 Bytes
/
role.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
ROSTemplateFormatVersion: '2015-09-01'
Description: RAM Role resource example
Parameters:
RoleName:
Type: String
Description: Specifies the role name, containing up to 64 characters.
Resources:
Role:
Type: ALIYUN::RAM::Role
Properties:
RoleName:
Ref: RoleName
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service:
- actiontrail.aliyuncs.com
Version: '1'
Outputs:
RoleId:
Description: Id of ram role.
Value:
Fn::GetAtt:
- Role
- RoleId
Arn:
Description: Name of alicloud resource.
Value:
Fn::GetAtt:
- Role
- Arn
RoleName:
Description: Name of ram role.
Value:
Fn::GetAtt:
- Role
- RoleName