forked from aws-samples/aws-organizations-account-resource
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproserve-organizations-account.json
299 lines (299 loc) · 11.5 KB
/
proserve-organizations-account.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
{
"typeName": "ProServe::Organizations::Account",
"description": "Resource Schema for ProServe::Organizations::Account",
"sourceUrl": "https://gitlab.aws.dev/aws-enterprise-jumpstart/aws-organizations-account-resource",
"typeConfiguration": {
"properties": {
"RoleArn": {
"$ref": "#/definitions/RoleArn"
}
},
"additionalProperties": false,
"required": []
},
"definitions": {
"RoleArn": {
"description": "Role ARN to be assumed in order to create the Account",
"type": "string"
},
"DeploymentAccountConfiguration": {
"description": "(Optional) A dedicated deployment account can be used to further enhance security. This configuration creates a second role within the newly created account. This role trusts the given deployment account, allowing users in the given deployment account to assume the role.",
"type": "object",
"properties": {
"AccountId": {
"description": "Deployment Account Id",
"type": "string",
"minLength": 12,
"maxLength": 12
},
"RoleName": {
"description": "Deployment Role Name.",
"type": "string",
"default": "DeploymentAccountAccessRole",
"minLength": 1,
"maxLength": 256
},
"AWSManagedPolicyArns": {
"description": "A List of AWS managed policy arn's to attach to the deployment account role",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"insertionOrder": false,
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"AccountId",
"AWSManagedPolicyArns"
]
},
"AlternateContacts": {
"description": "(Optional) Alternate contacts to be set",
"type": "object",
"additionalProperties": false,
"properties": {
"Billing": {
"$ref": "#/definitions/AlternateContact"
},
"Operations": {
"$ref": "#/definitions/AlternateContact"
},
"Security": {
"$ref": "#/definitions/AlternateContact"
}
}
},
"AlternateContact": {
"description": "Alternate contact to be set",
"type": "object",
"additionalProperties": false,
"properties": {
"Email": {
"description": "Contacts email address",
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "[\\w+=,.-]+@[\\w.-]+\\.[\\w]+"
},
"Name": {
"description": "Contacts name",
"type": "string",
"minLength": 1,
"maxLength": 64
},
"PhoneNumber": {
"description": "Contacts phone number",
"type": "string",
"minLength": 1,
"maxLength": 25,
"pattern": "^[\\s0-9()+-]+$"
},
"Title": {
"description": "Contacts title",
"type": "string",
"minLength": 1,
"maxLength": 50
}
},
"required": [
"Email",
"Name",
"PhoneNumber",
"Title"
]
},
"Tag": {
"type": "object",
"properties": {
"Key": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"Value": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"additionalProperties": false,
"required": [
"Key",
"Value"
]
}
},
"properties": {
"AccountName": {
"description": "The friendly name of the member account.",
"type": "string"
},
"AccountEmail": {
"description": "The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account. You must use a valid email address to complete account creation. You can't access the root user of the account or remove an account that was created with an invalid email address.",
"type": "string"
},
"OrganizationalUnitId": {
"description": "The unique identifier (ID) of the root or organizational unit that you want to create the account in.",
"type" : "string"
},
"AlternateContacts": {
"$ref": "#/definitions/AlternateContacts"
},
"OrganizationAccountAccessRoleName": {
"description": "The name of an IAM role that AWS Organizations automatically preconfigures in the new member account. This role trusts the management account, allowing users in the management account to assume the role, as permitted by the management account administrator. The role has administrator permissions in the new member account.\n\nIf you don't specify this parameter, the role name defaults to `OrganizationAccountAccessRole`.",
"type": "string",
"default": "OrganizationAccountAccessRole"
},
"DeploymentAccountConfiguration": {
"$ref" : "#/definitions/DeploymentAccountConfiguration"
},
"Tags": {
"description": "One or more tags.",
"type": "array",
"insertionOrder": false,
"items": {
"$ref" : "#/definitions/Tag"
}
},
"NotificationTopicArn": {
"description": "The SNS topic ARN to which to publish failure reasons.",
"type": "string"
},
"AccountRequestId": {
"description": "The unique identifier (ID) of the account creation request.",
"type": "string"
},
"AccountId": {
"description": "The unique identifier (ID) of the account.",
"type": "string"
},
"CloseAccountOnDeletion": {
"description": "If set to true account will be closed by AWS CloudFormation. Otherwise, just parked in root organizational unit.",
"type": "boolean"
}
},
"additionalProperties": false,
"taggable": true,
"required": [
"AccountName",
"AccountEmail",
"OrganizationalUnitId"
],
"readOnlyProperties": [
"/properties/AccountId",
"/properties/AccountRequestId"
],
"writeOnlyProperties": [
"/properties/NotificationTopicArn",
"/properties/OrganizationAccountAccessRoleName",
"/properties/DeploymentAccountConfiguration"
],
"primaryIdentifier": [
"/properties/AccountId"
],
"createOnlyProperties": [
"/properties/OrganizationAccountAccessRoleName",
"/properties/DeploymentAccountConfiguration"
],
"handlers": {
"create": {
"permissions": [
"sts:AssumeRole",
"organizations:CreateAccount",
"organizations:MoveAccount",
"organizations:DescribeAccount",
"organizations:DescribeOrganization",
"organizations:DescribeOrganizationalUnit",
"organizations:ListRoots",
"organizations:ListParents",
"organizations:ListChildren",
"organizations:ListAccounts",
"organizations:ListAccountsForParent",
"organizations:ListOrganizationalUnitsForParent",
"organizations:DescribeCreateAccountStatus",
"organizations:ListTagsForResource",
"organizations:TagResource",
"organizations:UntagResource",
"account:DeleteAlternateContact",
"account:GetAlternateContact",
"account:PutAlternateContact",
"sns:Publish"
]
},
"read": {
"permissions": [
"sts:AssumeRole",
"organizations:DescribeAccount",
"organizations:DescribeOrganization",
"organizations:DescribeOrganizationalUnit",
"organizations:ListRoots",
"organizations:ListParents",
"organizations:ListChildren",
"organizations:ListAccounts",
"organizations:ListAccountsForParent",
"organizations:ListOrganizationalUnitsForParent",
"organizations:ListTagsForResource",
"account:GetAlternateContact",
"sns:Publish"
]
},
"update": {
"permissions": [
"sts:AssumeRole",
"organizations:DescribeAccount",
"organizations:DescribeOrganization",
"organizations:DescribeOrganizationalUnit",
"organizations:ListRoots",
"organizations:ListParents",
"organizations:ListChildren",
"organizations:ListAccounts",
"organizations:ListAccountsForParent",
"organizations:ListOrganizationalUnitsForParent",
"organizations:ListTagsForResource",
"account:DeleteAlternateContact",
"account:GetAlternateContact",
"account:PutAlternateContact",
"sns:Publish"
]
},
"delete": {
"permissions": [
"sts:AssumeRole",
"organizations:MoveAccount",
"organizations:DescribeAccount",
"organizations:DescribeOrganization",
"organizations:DescribeOrganizationalUnit",
"organizations:ListRoots",
"organizations:ListParents",
"organizations:ListChildren",
"organizations:ListAccounts",
"organizations:ListAccountsForParent",
"organizations:ListOrganizationalUnitsForParent",
"organizations:ListTagsForResource",
"organizations:TagResource",
"organizations:UntagResource",
"organizations:CloseAccount",
"account:DeleteAlternateContact",
"account:GetAlternateContact",
"account:PutAlternateContact",
"sns:Publish"
]
},
"list": {
"permissions": [
"sts:AssumeRole",
"organizations:DescribeAccount",
"organizations:ListRoots",
"organizations:ListParents",
"organizations:ListAccounts",
"organizations:ListOrganizationalUnitsForParent",
"organizations:ListTagsForResource",
"account:GetAlternateContact",
"sns:Publish"
]
}
}
}