-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud-formation-user.json
51 lines (51 loc) · 1.27 KB
/
cloud-formation-user.json
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
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Template for creating a new AWS user with full Access",
"Resources": {
"NewUser": {
"Type": "AWS::IAM::User",
"Properties": {
"LoginProfile": {
"Password": {
"Ref": "UserPassword"
},
"PasswordResetRequired": false
},
"Policies": [
{
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "*",
"Resource": "*"
}
]
},
"PolicyName": "AdministratorAccess"
}
],
"UserName": {
"Ref": "UserName"
}
}
}
},
"Parameters": {
"UserPassword": {
"NoEcho": "true",
"Description": "The user password, this user will have full administrative access to the AWS account and can incur charges, please use a strong password",
"Type": "String",
"MinLength": "8",
"MaxLength": "150"
},
"UserName": {
"Description": "The Username",
"Type": "String",
"MinLength": "3",
"MaxLength": "41",
"AllowedPattern": "^[a-zA-Z0-9_+=,.@-]*$"
}
}
}