forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
access-key.yml
42 lines (42 loc) · 1.05 KB
/
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
40
41
42
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建RAM用户及访问密钥,通过参数指定用户名,输出密钥ID、密钥密钥和状态。
en: Create RAM users and access keys, specifying the user name via parameters, with
output including the Access Key ID, Secret Access Key, and status.
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