forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
access-key.yml
39 lines (39 loc) · 840 Bytes
/
access-key.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 User/AccessKey resource example
Parameters:
UserName:
Type: String
Description: Specifies the user name, containing up to 64 characters.
Resources:
SubAccount:
Type: ALIYUN::RAM::User
Properties:
UserName:
Ref: UserName
AccessKey:
Type: ALIYUN::RAM::AccessKey
Properties:
UserName:
Fn::GetAtt:
- SubAccount
- UserName
DependsOn: SubAccount
Outputs:
AccessKeySecret:
Description: Secret of access key.
Value:
Fn::GetAtt:
- AccessKey
- AccessKeySecret
Status:
Description: Status of access key.
Value:
Fn::GetAtt:
- AccessKey
- Status
AccessKeyId:
Description: Id of access key.
Value:
Fn::GetAtt:
- AccessKey
- AccessKeyId