@aws-solutions-constructs/resources 2.79.1 → 2.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +43 -43
- package/lib/template-writer-custom-resource/index.d.ts +1 -0
- package/lib/template-writer-custom-resource/index.js +7 -2
- package/package.json +6 -6
- package/test/integ.key-policy-updater.js.snapshot/cdk.out +1 -1
- package/test/integ.key-policy-updater.js.snapshot/integ.json +1 -1
- package/test/integ.key-policy-updater.js.snapshot/key-policy-updater.assets.json +6 -6
- package/test/integ.key-policy-updater.js.snapshot/key-policy-updater.template.json +55 -40
- package/test/integ.key-policy-updater.js.snapshot/keypolicyupdaterIntegDefaultTestDeployAssert2855331B.assets.json +1 -1
- package/test/integ.key-policy-updater.js.snapshot/manifest.json +363 -6
- package/test/integ.key-policy-updater.js.snapshot/tree.json +1 -816
- package/test/integ.template-writer-from-asset.js.snapshot/{asset.37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7 → asset.b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d}/index.d.ts +1 -0
- package/test/integ.template-writer-from-asset.js.snapshot/{asset.37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7 → asset.b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d}/index.js +7 -2
- package/test/integ.template-writer-from-asset.js.snapshot/cdk.out +1 -1
- package/test/integ.template-writer-from-asset.js.snapshot/integ.json +1 -1
- package/test/integ.template-writer-from-asset.js.snapshot/manifest.json +336 -6
- package/test/integ.template-writer-from-asset.js.snapshot/template-writer-from-asset.assets.json +9 -9
- package/test/integ.template-writer-from-asset.js.snapshot/template-writer-from-asset.template.json +56 -41
- package/test/integ.template-writer-from-asset.js.snapshot/templatewriterfromassetIntegDefaultTestDeployAssert3AE00E9B.assets.json +1 -1
- package/test/integ.template-writer-from-asset.js.snapshot/tree.json +1 -657
- package/test/integ.template-writer-from-large-asset.js.snapshot/{asset.37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7 → asset.b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d}/index.d.ts +1 -0
- package/test/integ.template-writer-from-large-asset.js.snapshot/{asset.37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7 → asset.b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d}/index.js +7 -2
- package/test/integ.template-writer-from-large-asset.js.snapshot/cdk.out +1 -1
- package/test/integ.template-writer-from-large-asset.js.snapshot/integ.json +1 -1
- package/test/integ.template-writer-from-large-asset.js.snapshot/manifest.json +336 -6
- package/test/integ.template-writer-from-large-asset.js.snapshot/template-writer-from-large-asset.assets.json +9 -9
- package/test/integ.template-writer-from-large-asset.js.snapshot/template-writer-from-large-asset.template.json +56 -41
- package/test/integ.template-writer-from-large-asset.js.snapshot/templatewriterfromlargeassetIntegDefaultTestDeployAssertA02D2FEC.assets.json +1 -1
- package/test/integ.template-writer-from-large-asset.js.snapshot/tree.json +1 -659
- package/test/template-writer.test.js +37 -1
|
@@ -1,816 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "tree-0.1",
|
|
3
|
-
"tree": {
|
|
4
|
-
"id": "App",
|
|
5
|
-
"path": "",
|
|
6
|
-
"children": {
|
|
7
|
-
"key-policy-updater": {
|
|
8
|
-
"id": "key-policy-updater",
|
|
9
|
-
"path": "key-policy-updater",
|
|
10
|
-
"children": {
|
|
11
|
-
"test key": {
|
|
12
|
-
"id": "test key",
|
|
13
|
-
"path": "key-policy-updater/test key",
|
|
14
|
-
"children": {
|
|
15
|
-
"Resource": {
|
|
16
|
-
"id": "Resource",
|
|
17
|
-
"path": "key-policy-updater/test key/Resource",
|
|
18
|
-
"attributes": {
|
|
19
|
-
"aws:cdk:cloudformation:type": "AWS::KMS::Key",
|
|
20
|
-
"aws:cdk:cloudformation:props": {
|
|
21
|
-
"enableKeyRotation": true,
|
|
22
|
-
"keyPolicy": {
|
|
23
|
-
"Statement": [
|
|
24
|
-
{
|
|
25
|
-
"Action": "kms:*",
|
|
26
|
-
"Effect": "Allow",
|
|
27
|
-
"Principal": {
|
|
28
|
-
"AWS": {
|
|
29
|
-
"Fn::Join": [
|
|
30
|
-
"",
|
|
31
|
-
[
|
|
32
|
-
"arn:",
|
|
33
|
-
{
|
|
34
|
-
"Ref": "AWS::Partition"
|
|
35
|
-
},
|
|
36
|
-
":iam::",
|
|
37
|
-
{
|
|
38
|
-
"Ref": "AWS::AccountId"
|
|
39
|
-
},
|
|
40
|
-
":root"
|
|
41
|
-
]
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"Resource": "*"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"Version": "2012-10-17"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"constructInfo": {
|
|
53
|
-
"fqn": "aws-cdk-lib.aws_kms.CfnKey",
|
|
54
|
-
"version": "2.150.0"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"constructInfo": {
|
|
59
|
-
"fqn": "aws-cdk-lib.aws_kms.Key",
|
|
60
|
-
"version": "2.150.0"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"test bucket": {
|
|
64
|
-
"id": "test bucket",
|
|
65
|
-
"path": "key-policy-updater/test bucket",
|
|
66
|
-
"children": {
|
|
67
|
-
"Resource": {
|
|
68
|
-
"id": "Resource",
|
|
69
|
-
"path": "key-policy-updater/test bucket/Resource",
|
|
70
|
-
"attributes": {
|
|
71
|
-
"aws:cdk:cloudformation:type": "AWS::S3::Bucket",
|
|
72
|
-
"aws:cdk:cloudformation:props": {
|
|
73
|
-
"bucketEncryption": {
|
|
74
|
-
"serverSideEncryptionConfiguration": [
|
|
75
|
-
{
|
|
76
|
-
"serverSideEncryptionByDefault": {
|
|
77
|
-
"sseAlgorithm": "AES256"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"constructInfo": {
|
|
85
|
-
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
86
|
-
"version": "2.150.0"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"Policy": {
|
|
90
|
-
"id": "Policy",
|
|
91
|
-
"path": "key-policy-updater/test bucket/Policy",
|
|
92
|
-
"children": {
|
|
93
|
-
"Resource": {
|
|
94
|
-
"id": "Resource",
|
|
95
|
-
"path": "key-policy-updater/test bucket/Policy/Resource",
|
|
96
|
-
"attributes": {
|
|
97
|
-
"aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy",
|
|
98
|
-
"aws:cdk:cloudformation:props": {
|
|
99
|
-
"bucket": {
|
|
100
|
-
"Ref": "testbucketA976ABFD"
|
|
101
|
-
},
|
|
102
|
-
"policyDocument": {
|
|
103
|
-
"Statement": [
|
|
104
|
-
{
|
|
105
|
-
"Action": "s3:GetObject",
|
|
106
|
-
"Effect": "Allow",
|
|
107
|
-
"Principal": {
|
|
108
|
-
"CanonicalUser": {
|
|
109
|
-
"Fn::GetAtt": [
|
|
110
|
-
"testdistOrigin1S3Origin7E994241",
|
|
111
|
-
"S3CanonicalUserId"
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"Resource": {
|
|
116
|
-
"Fn::Join": [
|
|
117
|
-
"",
|
|
118
|
-
[
|
|
119
|
-
{
|
|
120
|
-
"Fn::GetAtt": [
|
|
121
|
-
"testbucketA976ABFD",
|
|
122
|
-
"Arn"
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
"/*"
|
|
126
|
-
]
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"Version": "2012-10-17"
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"constructInfo": {
|
|
136
|
-
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
137
|
-
"version": "2.150.0"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"constructInfo": {
|
|
142
|
-
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
143
|
-
"version": "2.150.0"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"constructInfo": {
|
|
148
|
-
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
149
|
-
"version": "2.150.0"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"test dist": {
|
|
153
|
-
"id": "test dist",
|
|
154
|
-
"path": "key-policy-updater/test dist",
|
|
155
|
-
"children": {
|
|
156
|
-
"Origin1": {
|
|
157
|
-
"id": "Origin1",
|
|
158
|
-
"path": "key-policy-updater/test dist/Origin1",
|
|
159
|
-
"children": {
|
|
160
|
-
"S3Origin": {
|
|
161
|
-
"id": "S3Origin",
|
|
162
|
-
"path": "key-policy-updater/test dist/Origin1/S3Origin",
|
|
163
|
-
"children": {
|
|
164
|
-
"Resource": {
|
|
165
|
-
"id": "Resource",
|
|
166
|
-
"path": "key-policy-updater/test dist/Origin1/S3Origin/Resource",
|
|
167
|
-
"attributes": {
|
|
168
|
-
"aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
169
|
-
"aws:cdk:cloudformation:props": {
|
|
170
|
-
"cloudFrontOriginAccessIdentityConfig": {
|
|
171
|
-
"comment": "Identity for keypolicyupdatertestdistOrigin1D732FBD3"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
"constructInfo": {
|
|
176
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
|
|
177
|
-
"version": "2.150.0"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"constructInfo": {
|
|
182
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
|
|
183
|
-
"version": "2.150.0"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"constructInfo": {
|
|
188
|
-
"fqn": "constructs.Construct",
|
|
189
|
-
"version": "10.3.0"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"Resource": {
|
|
193
|
-
"id": "Resource",
|
|
194
|
-
"path": "key-policy-updater/test dist/Resource",
|
|
195
|
-
"attributes": {
|
|
196
|
-
"aws:cdk:cloudformation:type": "AWS::CloudFront::Distribution",
|
|
197
|
-
"aws:cdk:cloudformation:props": {
|
|
198
|
-
"distributionConfig": {
|
|
199
|
-
"enabled": true,
|
|
200
|
-
"origins": [
|
|
201
|
-
{
|
|
202
|
-
"domainName": {
|
|
203
|
-
"Fn::GetAtt": [
|
|
204
|
-
"testbucketA976ABFD",
|
|
205
|
-
"RegionalDomainName"
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
"id": "keypolicyupdatertestdistOrigin1D732FBD3",
|
|
209
|
-
"s3OriginConfig": {
|
|
210
|
-
"originAccessIdentity": {
|
|
211
|
-
"Fn::Join": [
|
|
212
|
-
"",
|
|
213
|
-
[
|
|
214
|
-
"origin-access-identity/cloudfront/",
|
|
215
|
-
{
|
|
216
|
-
"Ref": "testdistOrigin1S3Origin7E994241"
|
|
217
|
-
}
|
|
218
|
-
]
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"defaultCacheBehavior": {
|
|
225
|
-
"pathPattern": "*",
|
|
226
|
-
"targetOriginId": "keypolicyupdatertestdistOrigin1D732FBD3",
|
|
227
|
-
"cachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
|
|
228
|
-
"compress": true,
|
|
229
|
-
"viewerProtocolPolicy": "allow-all"
|
|
230
|
-
},
|
|
231
|
-
"httpVersion": "http2",
|
|
232
|
-
"ipv6Enabled": true
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"constructInfo": {
|
|
237
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
|
|
238
|
-
"version": "2.150.0"
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
"constructInfo": {
|
|
243
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
|
|
244
|
-
"version": "2.150.0"
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
"LambdaFunctionServiceRole": {
|
|
248
|
-
"id": "LambdaFunctionServiceRole",
|
|
249
|
-
"path": "key-policy-updater/LambdaFunctionServiceRole",
|
|
250
|
-
"children": {
|
|
251
|
-
"ImportLambdaFunctionServiceRole": {
|
|
252
|
-
"id": "ImportLambdaFunctionServiceRole",
|
|
253
|
-
"path": "key-policy-updater/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
|
|
254
|
-
"constructInfo": {
|
|
255
|
-
"fqn": "aws-cdk-lib.Resource",
|
|
256
|
-
"version": "2.150.0"
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
"Resource": {
|
|
260
|
-
"id": "Resource",
|
|
261
|
-
"path": "key-policy-updater/LambdaFunctionServiceRole/Resource",
|
|
262
|
-
"attributes": {
|
|
263
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Role",
|
|
264
|
-
"aws:cdk:cloudformation:props": {
|
|
265
|
-
"assumeRolePolicyDocument": {
|
|
266
|
-
"Statement": [
|
|
267
|
-
{
|
|
268
|
-
"Action": "sts:AssumeRole",
|
|
269
|
-
"Effect": "Allow",
|
|
270
|
-
"Principal": {
|
|
271
|
-
"Service": "lambda.amazonaws.com"
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"Version": "2012-10-17"
|
|
276
|
-
},
|
|
277
|
-
"policies": [
|
|
278
|
-
{
|
|
279
|
-
"policyName": "LambdaFunctionServiceRolePolicy",
|
|
280
|
-
"policyDocument": {
|
|
281
|
-
"Statement": [
|
|
282
|
-
{
|
|
283
|
-
"Action": [
|
|
284
|
-
"logs:CreateLogGroup",
|
|
285
|
-
"logs:CreateLogStream",
|
|
286
|
-
"logs:PutLogEvents"
|
|
287
|
-
],
|
|
288
|
-
"Effect": "Allow",
|
|
289
|
-
"Resource": {
|
|
290
|
-
"Fn::Join": [
|
|
291
|
-
"",
|
|
292
|
-
[
|
|
293
|
-
"arn:",
|
|
294
|
-
{
|
|
295
|
-
"Ref": "AWS::Partition"
|
|
296
|
-
},
|
|
297
|
-
":logs:",
|
|
298
|
-
{
|
|
299
|
-
"Ref": "AWS::Region"
|
|
300
|
-
},
|
|
301
|
-
":",
|
|
302
|
-
{
|
|
303
|
-
"Ref": "AWS::AccountId"
|
|
304
|
-
},
|
|
305
|
-
":log-group:/aws/lambda/*"
|
|
306
|
-
]
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
],
|
|
311
|
-
"Version": "2012-10-17"
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
]
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
"constructInfo": {
|
|
318
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnRole",
|
|
319
|
-
"version": "2.150.0"
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
"DefaultPolicy": {
|
|
323
|
-
"id": "DefaultPolicy",
|
|
324
|
-
"path": "key-policy-updater/LambdaFunctionServiceRole/DefaultPolicy",
|
|
325
|
-
"children": {
|
|
326
|
-
"Resource": {
|
|
327
|
-
"id": "Resource",
|
|
328
|
-
"path": "key-policy-updater/LambdaFunctionServiceRole/DefaultPolicy/Resource",
|
|
329
|
-
"attributes": {
|
|
330
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Policy",
|
|
331
|
-
"aws:cdk:cloudformation:props": {
|
|
332
|
-
"policyDocument": {
|
|
333
|
-
"Statement": [
|
|
334
|
-
{
|
|
335
|
-
"Action": [
|
|
336
|
-
"xray:PutTelemetryRecords",
|
|
337
|
-
"xray:PutTraceSegments"
|
|
338
|
-
],
|
|
339
|
-
"Effect": "Allow",
|
|
340
|
-
"Resource": "*"
|
|
341
|
-
}
|
|
342
|
-
],
|
|
343
|
-
"Version": "2012-10-17"
|
|
344
|
-
},
|
|
345
|
-
"policyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
|
|
346
|
-
"roles": [
|
|
347
|
-
{
|
|
348
|
-
"Ref": "LambdaFunctionServiceRole0C4CDE0B"
|
|
349
|
-
}
|
|
350
|
-
]
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
"constructInfo": {
|
|
354
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
|
|
355
|
-
"version": "2.150.0"
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
"constructInfo": {
|
|
360
|
-
"fqn": "aws-cdk-lib.aws_iam.Policy",
|
|
361
|
-
"version": "2.150.0"
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
"constructInfo": {
|
|
366
|
-
"fqn": "aws-cdk-lib.aws_iam.Role",
|
|
367
|
-
"version": "2.150.0"
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
"LambdaFunction": {
|
|
371
|
-
"id": "LambdaFunction",
|
|
372
|
-
"path": "key-policy-updater/LambdaFunction",
|
|
373
|
-
"children": {
|
|
374
|
-
"Code": {
|
|
375
|
-
"id": "Code",
|
|
376
|
-
"path": "key-policy-updater/LambdaFunction/Code",
|
|
377
|
-
"children": {
|
|
378
|
-
"Stage": {
|
|
379
|
-
"id": "Stage",
|
|
380
|
-
"path": "key-policy-updater/LambdaFunction/Code/Stage",
|
|
381
|
-
"constructInfo": {
|
|
382
|
-
"fqn": "aws-cdk-lib.AssetStaging",
|
|
383
|
-
"version": "2.150.0"
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
"AssetBucket": {
|
|
387
|
-
"id": "AssetBucket",
|
|
388
|
-
"path": "key-policy-updater/LambdaFunction/Code/AssetBucket",
|
|
389
|
-
"constructInfo": {
|
|
390
|
-
"fqn": "aws-cdk-lib.aws_s3.BucketBase",
|
|
391
|
-
"version": "2.150.0"
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
"constructInfo": {
|
|
396
|
-
"fqn": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
397
|
-
"version": "2.150.0"
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
"Resource": {
|
|
401
|
-
"id": "Resource",
|
|
402
|
-
"path": "key-policy-updater/LambdaFunction/Resource",
|
|
403
|
-
"attributes": {
|
|
404
|
-
"aws:cdk:cloudformation:type": "AWS::Lambda::Function",
|
|
405
|
-
"aws:cdk:cloudformation:props": {
|
|
406
|
-
"code": {
|
|
407
|
-
"s3Bucket": {
|
|
408
|
-
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
409
|
-
},
|
|
410
|
-
"s3Key": "e97825c838d70ceb13ba2f6223a7d94ed35687b70bfb224a0b9128e698e3f28e.zip"
|
|
411
|
-
},
|
|
412
|
-
"description": "Custom resource function that updates a provided key policy to allow CloudFront access.",
|
|
413
|
-
"environment": {
|
|
414
|
-
"variables": {
|
|
415
|
-
"AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
"handler": "index.handler",
|
|
419
|
-
"role": {
|
|
420
|
-
"Fn::GetAtt": [
|
|
421
|
-
"LambdaFunctionServiceRole0C4CDE0B",
|
|
422
|
-
"Arn"
|
|
423
|
-
]
|
|
424
|
-
},
|
|
425
|
-
"runtime": "nodejs20.x",
|
|
426
|
-
"tracingConfig": {
|
|
427
|
-
"mode": "Active"
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
|
-
"constructInfo": {
|
|
432
|
-
"fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
|
|
433
|
-
"version": "2.150.0"
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
"constructInfo": {
|
|
438
|
-
"fqn": "aws-cdk-lib.aws_lambda.Function",
|
|
439
|
-
"version": "2.150.0"
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
"TestResourceCmkPolicy": {
|
|
443
|
-
"id": "TestResourceCmkPolicy",
|
|
444
|
-
"path": "key-policy-updater/TestResourceCmkPolicy",
|
|
445
|
-
"children": {
|
|
446
|
-
"Resource": {
|
|
447
|
-
"id": "Resource",
|
|
448
|
-
"path": "key-policy-updater/TestResourceCmkPolicy/Resource",
|
|
449
|
-
"attributes": {
|
|
450
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Policy",
|
|
451
|
-
"aws:cdk:cloudformation:props": {
|
|
452
|
-
"policyDocument": {
|
|
453
|
-
"Statement": [
|
|
454
|
-
{
|
|
455
|
-
"Action": [
|
|
456
|
-
"kms:DescribeKey",
|
|
457
|
-
"kms:GetKeyPolicy",
|
|
458
|
-
"kms:PutKeyPolicy"
|
|
459
|
-
],
|
|
460
|
-
"Effect": "Allow",
|
|
461
|
-
"Resource": {
|
|
462
|
-
"Fn::GetAtt": [
|
|
463
|
-
"testkey9B36F12B",
|
|
464
|
-
"Arn"
|
|
465
|
-
]
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
],
|
|
469
|
-
"Version": "2012-10-17"
|
|
470
|
-
},
|
|
471
|
-
"policyName": "TestResourceCmkPolicy977FBAA4",
|
|
472
|
-
"roles": [
|
|
473
|
-
{
|
|
474
|
-
"Ref": "LambdaFunctionServiceRole0C4CDE0B"
|
|
475
|
-
}
|
|
476
|
-
]
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
"constructInfo": {
|
|
480
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
|
|
481
|
-
"version": "2.150.0"
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
},
|
|
485
|
-
"constructInfo": {
|
|
486
|
-
"fqn": "aws-cdk-lib.aws_iam.Policy",
|
|
487
|
-
"version": "2.150.0"
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
"KmsKeyPolicyUpdateProvider": {
|
|
491
|
-
"id": "KmsKeyPolicyUpdateProvider",
|
|
492
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider",
|
|
493
|
-
"children": {
|
|
494
|
-
"framework-onEvent": {
|
|
495
|
-
"id": "framework-onEvent",
|
|
496
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent",
|
|
497
|
-
"children": {
|
|
498
|
-
"ServiceRole": {
|
|
499
|
-
"id": "ServiceRole",
|
|
500
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole",
|
|
501
|
-
"children": {
|
|
502
|
-
"ImportServiceRole": {
|
|
503
|
-
"id": "ImportServiceRole",
|
|
504
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/ImportServiceRole",
|
|
505
|
-
"constructInfo": {
|
|
506
|
-
"fqn": "aws-cdk-lib.Resource",
|
|
507
|
-
"version": "2.150.0"
|
|
508
|
-
}
|
|
509
|
-
},
|
|
510
|
-
"Resource": {
|
|
511
|
-
"id": "Resource",
|
|
512
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/Resource",
|
|
513
|
-
"attributes": {
|
|
514
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Role",
|
|
515
|
-
"aws:cdk:cloudformation:props": {
|
|
516
|
-
"assumeRolePolicyDocument": {
|
|
517
|
-
"Statement": [
|
|
518
|
-
{
|
|
519
|
-
"Action": "sts:AssumeRole",
|
|
520
|
-
"Effect": "Allow",
|
|
521
|
-
"Principal": {
|
|
522
|
-
"Service": "lambda.amazonaws.com"
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
],
|
|
526
|
-
"Version": "2012-10-17"
|
|
527
|
-
},
|
|
528
|
-
"managedPolicyArns": [
|
|
529
|
-
{
|
|
530
|
-
"Fn::Join": [
|
|
531
|
-
"",
|
|
532
|
-
[
|
|
533
|
-
"arn:",
|
|
534
|
-
{
|
|
535
|
-
"Ref": "AWS::Partition"
|
|
536
|
-
},
|
|
537
|
-
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
|
|
538
|
-
]
|
|
539
|
-
]
|
|
540
|
-
}
|
|
541
|
-
]
|
|
542
|
-
}
|
|
543
|
-
},
|
|
544
|
-
"constructInfo": {
|
|
545
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnRole",
|
|
546
|
-
"version": "2.150.0"
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
"DefaultPolicy": {
|
|
550
|
-
"id": "DefaultPolicy",
|
|
551
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/DefaultPolicy",
|
|
552
|
-
"children": {
|
|
553
|
-
"Resource": {
|
|
554
|
-
"id": "Resource",
|
|
555
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource",
|
|
556
|
-
"attributes": {
|
|
557
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Policy",
|
|
558
|
-
"aws:cdk:cloudformation:props": {
|
|
559
|
-
"policyDocument": {
|
|
560
|
-
"Statement": [
|
|
561
|
-
{
|
|
562
|
-
"Action": "lambda:InvokeFunction",
|
|
563
|
-
"Effect": "Allow",
|
|
564
|
-
"Resource": [
|
|
565
|
-
{
|
|
566
|
-
"Fn::GetAtt": [
|
|
567
|
-
"LambdaFunctionBF21E41F",
|
|
568
|
-
"Arn"
|
|
569
|
-
]
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"Fn::Join": [
|
|
573
|
-
"",
|
|
574
|
-
[
|
|
575
|
-
{
|
|
576
|
-
"Fn::GetAtt": [
|
|
577
|
-
"LambdaFunctionBF21E41F",
|
|
578
|
-
"Arn"
|
|
579
|
-
]
|
|
580
|
-
},
|
|
581
|
-
":*"
|
|
582
|
-
]
|
|
583
|
-
]
|
|
584
|
-
}
|
|
585
|
-
]
|
|
586
|
-
}
|
|
587
|
-
],
|
|
588
|
-
"Version": "2012-10-17"
|
|
589
|
-
},
|
|
590
|
-
"policyName": "KmsKeyPolicyUpdateProviderframeworkonEventServiceRoleDefaultPolicyC8853973",
|
|
591
|
-
"roles": [
|
|
592
|
-
{
|
|
593
|
-
"Ref": "KmsKeyPolicyUpdateProviderframeworkonEventServiceRoleD0164B97"
|
|
594
|
-
}
|
|
595
|
-
]
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
"constructInfo": {
|
|
599
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
|
|
600
|
-
"version": "2.150.0"
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
"constructInfo": {
|
|
605
|
-
"fqn": "aws-cdk-lib.aws_iam.Policy",
|
|
606
|
-
"version": "2.150.0"
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
"constructInfo": {
|
|
611
|
-
"fqn": "aws-cdk-lib.aws_iam.Role",
|
|
612
|
-
"version": "2.150.0"
|
|
613
|
-
}
|
|
614
|
-
},
|
|
615
|
-
"Code": {
|
|
616
|
-
"id": "Code",
|
|
617
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/Code",
|
|
618
|
-
"children": {
|
|
619
|
-
"Stage": {
|
|
620
|
-
"id": "Stage",
|
|
621
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/Code/Stage",
|
|
622
|
-
"constructInfo": {
|
|
623
|
-
"fqn": "aws-cdk-lib.AssetStaging",
|
|
624
|
-
"version": "2.150.0"
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
|
-
"AssetBucket": {
|
|
628
|
-
"id": "AssetBucket",
|
|
629
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/Code/AssetBucket",
|
|
630
|
-
"constructInfo": {
|
|
631
|
-
"fqn": "aws-cdk-lib.aws_s3.BucketBase",
|
|
632
|
-
"version": "2.150.0"
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
},
|
|
636
|
-
"constructInfo": {
|
|
637
|
-
"fqn": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
638
|
-
"version": "2.150.0"
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
"Resource": {
|
|
642
|
-
"id": "Resource",
|
|
643
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/Resource",
|
|
644
|
-
"attributes": {
|
|
645
|
-
"aws:cdk:cloudformation:type": "AWS::Lambda::Function",
|
|
646
|
-
"aws:cdk:cloudformation:props": {
|
|
647
|
-
"code": {
|
|
648
|
-
"s3Bucket": {
|
|
649
|
-
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
650
|
-
},
|
|
651
|
-
"s3Key": "d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b.zip"
|
|
652
|
-
},
|
|
653
|
-
"description": "AWS CDK resource provider framework - onEvent (key-policy-updater/KmsKeyPolicyUpdateProvider)",
|
|
654
|
-
"environment": {
|
|
655
|
-
"variables": {
|
|
656
|
-
"USER_ON_EVENT_FUNCTION_ARN": {
|
|
657
|
-
"Fn::GetAtt": [
|
|
658
|
-
"LambdaFunctionBF21E41F",
|
|
659
|
-
"Arn"
|
|
660
|
-
]
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
},
|
|
664
|
-
"handler": "framework.onEvent",
|
|
665
|
-
"role": {
|
|
666
|
-
"Fn::GetAtt": [
|
|
667
|
-
"KmsKeyPolicyUpdateProviderframeworkonEventServiceRoleD0164B97",
|
|
668
|
-
"Arn"
|
|
669
|
-
]
|
|
670
|
-
},
|
|
671
|
-
"runtime": {
|
|
672
|
-
"Fn::FindInMap": [
|
|
673
|
-
"LatestNodeRuntimeMap",
|
|
674
|
-
{
|
|
675
|
-
"Ref": "AWS::Region"
|
|
676
|
-
},
|
|
677
|
-
"value"
|
|
678
|
-
]
|
|
679
|
-
},
|
|
680
|
-
"timeout": 900
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
"constructInfo": {
|
|
684
|
-
"fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
|
|
685
|
-
"version": "2.150.0"
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
},
|
|
689
|
-
"constructInfo": {
|
|
690
|
-
"fqn": "aws-cdk-lib.aws_lambda.Function",
|
|
691
|
-
"version": "2.150.0"
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
},
|
|
695
|
-
"constructInfo": {
|
|
696
|
-
"fqn": "aws-cdk-lib.custom_resources.Provider",
|
|
697
|
-
"version": "2.150.0"
|
|
698
|
-
}
|
|
699
|
-
},
|
|
700
|
-
"LatestNodeRuntimeMap": {
|
|
701
|
-
"id": "LatestNodeRuntimeMap",
|
|
702
|
-
"path": "key-policy-updater/LatestNodeRuntimeMap",
|
|
703
|
-
"constructInfo": {
|
|
704
|
-
"fqn": "aws-cdk-lib.CfnMapping",
|
|
705
|
-
"version": "2.150.0"
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
"KmsKeyPolicyUpdater": {
|
|
709
|
-
"id": "KmsKeyPolicyUpdater",
|
|
710
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdater",
|
|
711
|
-
"children": {
|
|
712
|
-
"Default": {
|
|
713
|
-
"id": "Default",
|
|
714
|
-
"path": "key-policy-updater/KmsKeyPolicyUpdater/Default",
|
|
715
|
-
"constructInfo": {
|
|
716
|
-
"fqn": "aws-cdk-lib.CfnResource",
|
|
717
|
-
"version": "2.150.0"
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
},
|
|
721
|
-
"constructInfo": {
|
|
722
|
-
"fqn": "aws-cdk-lib.CustomResource",
|
|
723
|
-
"version": "2.150.0"
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
"Integ": {
|
|
727
|
-
"id": "Integ",
|
|
728
|
-
"path": "key-policy-updater/Integ",
|
|
729
|
-
"children": {
|
|
730
|
-
"DefaultTest": {
|
|
731
|
-
"id": "DefaultTest",
|
|
732
|
-
"path": "key-policy-updater/Integ/DefaultTest",
|
|
733
|
-
"children": {
|
|
734
|
-
"Default": {
|
|
735
|
-
"id": "Default",
|
|
736
|
-
"path": "key-policy-updater/Integ/DefaultTest/Default",
|
|
737
|
-
"constructInfo": {
|
|
738
|
-
"fqn": "constructs.Construct",
|
|
739
|
-
"version": "10.3.0"
|
|
740
|
-
}
|
|
741
|
-
},
|
|
742
|
-
"DeployAssert": {
|
|
743
|
-
"id": "DeployAssert",
|
|
744
|
-
"path": "key-policy-updater/Integ/DefaultTest/DeployAssert",
|
|
745
|
-
"children": {
|
|
746
|
-
"BootstrapVersion": {
|
|
747
|
-
"id": "BootstrapVersion",
|
|
748
|
-
"path": "key-policy-updater/Integ/DefaultTest/DeployAssert/BootstrapVersion",
|
|
749
|
-
"constructInfo": {
|
|
750
|
-
"fqn": "aws-cdk-lib.CfnParameter",
|
|
751
|
-
"version": "2.150.0"
|
|
752
|
-
}
|
|
753
|
-
},
|
|
754
|
-
"CheckBootstrapVersion": {
|
|
755
|
-
"id": "CheckBootstrapVersion",
|
|
756
|
-
"path": "key-policy-updater/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
|
|
757
|
-
"constructInfo": {
|
|
758
|
-
"fqn": "aws-cdk-lib.CfnRule",
|
|
759
|
-
"version": "2.150.0"
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
},
|
|
763
|
-
"constructInfo": {
|
|
764
|
-
"fqn": "aws-cdk-lib.Stack",
|
|
765
|
-
"version": "2.150.0"
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
"constructInfo": {
|
|
770
|
-
"fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
|
|
771
|
-
"version": "2.150.0-alpha.0"
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
"constructInfo": {
|
|
776
|
-
"fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
|
|
777
|
-
"version": "2.150.0-alpha.0"
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
|
-
"BootstrapVersion": {
|
|
781
|
-
"id": "BootstrapVersion",
|
|
782
|
-
"path": "key-policy-updater/BootstrapVersion",
|
|
783
|
-
"constructInfo": {
|
|
784
|
-
"fqn": "aws-cdk-lib.CfnParameter",
|
|
785
|
-
"version": "2.150.0"
|
|
786
|
-
}
|
|
787
|
-
},
|
|
788
|
-
"CheckBootstrapVersion": {
|
|
789
|
-
"id": "CheckBootstrapVersion",
|
|
790
|
-
"path": "key-policy-updater/CheckBootstrapVersion",
|
|
791
|
-
"constructInfo": {
|
|
792
|
-
"fqn": "aws-cdk-lib.CfnRule",
|
|
793
|
-
"version": "2.150.0"
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
"constructInfo": {
|
|
798
|
-
"fqn": "aws-cdk-lib.Stack",
|
|
799
|
-
"version": "2.150.0"
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
"Tree": {
|
|
803
|
-
"id": "Tree",
|
|
804
|
-
"path": "Tree",
|
|
805
|
-
"constructInfo": {
|
|
806
|
-
"fqn": "constructs.Construct",
|
|
807
|
-
"version": "10.3.0"
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
},
|
|
811
|
-
"constructInfo": {
|
|
812
|
-
"fqn": "aws-cdk-lib.App",
|
|
813
|
-
"version": "2.150.0"
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
1
|
+
{"version":"tree-0.1","tree":{"id":"App","path":"","children":{"key-policy-updater":{"id":"key-policy-updater","path":"key-policy-updater","children":{"test key":{"id":"test key","path":"key-policy-updater/test key","children":{"Resource":{"id":"Resource","path":"key-policy-updater/test key/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::KMS::Key","aws:cdk:cloudformation:props":{"enableKeyRotation":true,"keyPolicy":{"Statement":[{"Action":"kms:*","Effect":"Allow","Principal":{"AWS":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":iam::",{"Ref":"AWS::AccountId"},":root"]]}},"Resource":"*"}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_kms.CfnKey","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_kms.Key","version":"2.186.0","metadata":[{"removalPolicy":"destroy","enableKeyRotation":true}]}},"test bucket":{"id":"test bucket","path":"key-policy-updater/test bucket","children":{"Resource":{"id":"Resource","path":"key-policy-updater/test bucket/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::Bucket","aws:cdk:cloudformation:props":{"bucketEncryption":{"serverSideEncryptionConfiguration":[{"serverSideEncryptionByDefault":{"sseAlgorithm":"AES256"}}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucket","version":"2.186.0"}},"Policy":{"id":"Policy","path":"key-policy-updater/test bucket/Policy","children":{"Resource":{"id":"Resource","path":"key-policy-updater/test bucket/Policy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::BucketPolicy","aws:cdk:cloudformation:props":{"bucket":{"Ref":"testbucketA976ABFD"},"policyDocument":{"Statement":[{"Action":"s3:GetObject","Effect":"Allow","Principal":{"CanonicalUser":{"Fn::GetAtt":["testdistOrigin1S3Origin7E994241","S3CanonicalUserId"]}},"Resource":{"Fn::Join":["",[{"Fn::GetAtt":["testbucketA976ABFD","Arn"]},"/*"]]}}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucketPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketPolicy","version":"2.186.0","metadata":[{"bucket":"*"}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.Bucket","version":"2.186.0","metadata":[{"removalPolicy":"destroy","encryption":"S3_MANAGED"}]}},"test dist":{"id":"test dist","path":"key-policy-updater/test dist","children":{"Origin1":{"id":"Origin1","path":"key-policy-updater/test dist/Origin1","children":{"S3Origin":{"id":"S3Origin","path":"key-policy-updater/test dist/Origin1/S3Origin","children":{"Resource":{"id":"Resource","path":"key-policy-updater/test dist/Origin1/S3Origin/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::CloudFrontOriginAccessIdentity","aws:cdk:cloudformation:props":{"cloudFrontOriginAccessIdentityConfig":{"comment":"Identity for keypolicyupdatertestdistOrigin1D732FBD3"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.OriginAccessIdentity","version":"2.186.0","metadata":[{}]}}},"constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"Resource":{"id":"Resource","path":"key-policy-updater/test dist/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::Distribution","aws:cdk:cloudformation:props":{"distributionConfig":{"enabled":true,"origins":[{"domainName":{"Fn::GetAtt":["testbucketA976ABFD","RegionalDomainName"]},"id":"keypolicyupdatertestdistOrigin1D732FBD3","s3OriginConfig":{"originAccessIdentity":{"Fn::Join":["",["origin-access-identity/cloudfront/",{"Ref":"testdistOrigin1S3Origin7E994241"}]]}}}],"defaultCacheBehavior":{"pathPattern":"*","targetOriginId":"keypolicyupdatertestdistOrigin1D732FBD3","cachePolicyId":"658327ea-f89d-4fab-a63d-7e88639e58f6","compress":true,"viewerProtocolPolicy":"allow-all"},"httpVersion":"http2","ipv6Enabled":true}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnDistribution","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.Distribution","version":"2.186.0","metadata":[{"defaultBehavior":{"origin":"*"}}]}},"LambdaFunctionServiceRole":{"id":"LambdaFunctionServiceRole","path":"key-policy-updater/LambdaFunctionServiceRole","children":{"ImportLambdaFunctionServiceRole":{"id":"ImportLambdaFunctionServiceRole","path":"key-policy-updater/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"key-policy-updater/LambdaFunctionServiceRole/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"}}],"Version":"2012-10-17"},"policies":[{"policyName":"LambdaFunctionServiceRolePolicy","policyDocument":{"Statement":[{"Action":["logs:CreateLogGroup","logs:CreateLogStream","logs:PutLogEvents"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":logs:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":log-group:/aws/lambda/*"]]}}],"Version":"2012-10-17"}}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"inlinePolicies":"*"},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]}]}},"LambdaFunction":{"id":"LambdaFunction","path":"key-policy-updater/LambdaFunction","children":{"Code":{"id":"Code","path":"key-policy-updater/LambdaFunction/Code","children":{"Stage":{"id":"Stage","path":"key-policy-updater/LambdaFunction/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"key-policy-updater/LambdaFunction/Code/AssetBucket","constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketBase","version":"2.186.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3_assets.Asset","version":"2.186.0"}},"Resource":{"id":"Resource","path":"key-policy-updater/LambdaFunction/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Function","aws:cdk:cloudformation:props":{"code":{"s3Bucket":{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"s3Key":"e97825c838d70ceb13ba2f6223a7d94ed35687b70bfb224a0b9128e698e3f28e.zip"},"description":"Custom resource function that updates a provided key policy to allow CloudFront access.","environment":{"variables":{"AWS_NODEJS_CONNECTION_REUSE_ENABLED":"1"}},"handler":"index.handler","role":{"Fn::GetAtt":["LambdaFunctionServiceRole0C4CDE0B","Arn"]},"runtime":"nodejs20.x","tracingConfig":{"mode":"Active"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnFunction","version":"2.186.0"}},"inlinePolicyAddedToExecutionRole-0":{"id":"inlinePolicyAddedToExecutionRole-0","path":"key-policy-updater/LambdaFunction/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"key-policy-updater/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["xray:PutTelemetryRecords","xray:PutTraceSegments"],"Effect":"Allow","Resource":"*"}],"Version":"2012-10-17"},"policyName":"LambdaFunctioninlinePolicyAddedToExecutionRole007875684","roles":[{"Ref":"LambdaFunctionServiceRole0C4CDE0B"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.186.0","metadata":[{"statements":"*"},{"addStatements":[{}]},{"attachToRole":["*"]},{"attachToRole":["*"]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.Function","version":"2.186.0","metadata":[{"role":"*","tracing":"Active","runtime":"*","handler":"*","description":"*","timeout":"*","memorySize":"*","code":"*"},{"addEnvironment":["*","*",{"removeInEdge":true}]}]}},"TestResourceCmkPolicy":{"id":"TestResourceCmkPolicy","path":"key-policy-updater/TestResourceCmkPolicy","children":{"Resource":{"id":"Resource","path":"key-policy-updater/TestResourceCmkPolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["kms:DescribeKey","kms:GetKeyPolicy","kms:PutKeyPolicy"],"Effect":"Allow","Resource":{"Fn::GetAtt":["testkey9B36F12B","Arn"]}}],"Version":"2012-10-17"},"policyName":"TestResourceCmkPolicy977FBAA4","roles":[{"Ref":"LambdaFunctionServiceRole0C4CDE0B"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.186.0","metadata":[{"statements":"*"},{"addStatements":[{}]},{"attachToRole":["*"]},{"attachToRole":["*"]}]}},"KmsKeyPolicyUpdateProvider":{"id":"KmsKeyPolicyUpdateProvider","path":"key-policy-updater/KmsKeyPolicyUpdateProvider","children":{"framework-onEvent":{"id":"framework-onEvent","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent","children":{"ServiceRole":{"id":"ServiceRole","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole","children":{"ImportServiceRole":{"id":"ImportServiceRole","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/ImportServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"}}],"Version":"2012-10-17"},"managedPolicyArns":[{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"]]}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.186.0"}},"DefaultPolicy":{"id":"DefaultPolicy","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/DefaultPolicy","children":{"Resource":{"id":"Resource","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":"lambda:InvokeFunction","Effect":"Allow","Resource":[{"Fn::GetAtt":["LambdaFunctionBF21E41F","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["LambdaFunctionBF21E41F","Arn"]},":*"]]}]}],"Version":"2012-10-17"},"policyName":"KmsKeyPolicyUpdateProviderframeworkonEventServiceRoleDefaultPolicyC8853973","roles":[{"Ref":"KmsKeyPolicyUpdateProviderframeworkonEventServiceRoleD0164B97"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.186.0","metadata":["*",{"attachToRole":["*"]},{"attachToRole":["*"]},{"addStatements":[{}]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"managedPolicies":[{"managedPolicyArn":"*"}]},{"addToPrincipalPolicy":[{}]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]}]}},"Code":{"id":"Code","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/Code","children":{"Stage":{"id":"Stage","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/Code/AssetBucket","constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketBase","version":"2.186.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3_assets.Asset","version":"2.186.0"}},"Resource":{"id":"Resource","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Function","aws:cdk:cloudformation:props":{"code":{"s3Bucket":{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"s3Key":"bdc104ed9cab1b5b6421713c8155f0b753380595356f710400609664d3635eca.zip"},"description":"AWS CDK resource provider framework - onEvent (key-policy-updater/KmsKeyPolicyUpdateProvider)","environment":{"variables":{"USER_ON_EVENT_FUNCTION_ARN":{"Fn::GetAtt":["LambdaFunctionBF21E41F","Arn"]}}},"handler":"framework.onEvent","role":{"Fn::GetAtt":["KmsKeyPolicyUpdateProviderframeworkonEventServiceRoleD0164B97","Arn"]},"runtime":{"Fn::FindInMap":["LatestNodeRuntimeMap",{"Ref":"AWS::Region"},"value"]},"timeout":900}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnFunction","version":"2.186.0"}},"inlinePolicyAddedToExecutionRole-0":{"id":"inlinePolicyAddedToExecutionRole-0","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"key-policy-updater/KmsKeyPolicyUpdateProvider/framework-onEvent/inlinePolicyAddedToExecutionRole-0/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":"lambda:GetFunction","Effect":"Allow","Resource":{"Fn::GetAtt":["LambdaFunctionBF21E41F","Arn"]}}],"Version":"2012-10-17"},"policyName":"KmsKeyPolicyUpdateProviderframeworkonEventinlinePolicyAddedToExecutionRole0DC7D970F","roles":[{"Ref":"KmsKeyPolicyUpdateProviderframeworkonEventServiceRoleD0164B97"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.186.0","metadata":[{"statements":"*"},{"addStatements":[{}]},{"attachToRole":["*"]},{"attachToRole":["*"]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.Function","version":"2.186.0","metadata":[{"code":"*","description":"*","runtime":"*","handler":"*","timeout":"*","logGroup":"*","vpc":"*","vpcSubnets":"*","securityGroups":"*","role":"*","functionName":"*","environmentEncryption":"*"},{"addEnvironment":["*","*"]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.custom_resources.Provider","version":"2.186.0"}},"LatestNodeRuntimeMap":{"id":"LatestNodeRuntimeMap","path":"key-policy-updater/LatestNodeRuntimeMap","constructInfo":{"fqn":"aws-cdk-lib.CfnMapping","version":"2.186.0"}},"KmsKeyPolicyUpdater":{"id":"KmsKeyPolicyUpdater","path":"key-policy-updater/KmsKeyPolicyUpdater","children":{"Default":{"id":"Default","path":"key-policy-updater/KmsKeyPolicyUpdater/Default","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResource","version":"2.186.0","metadata":["*"]}},"Integ":{"id":"Integ","path":"key-policy-updater/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"key-policy-updater/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"key-policy-updater/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"key-policy-updater/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"key-policy-updater/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"key-policy-updater/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.186.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTestCase","version":"2.186.0-alpha.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTest","version":"2.186.0-alpha.0"}},"BootstrapVersion":{"id":"BootstrapVersion","path":"key-policy-updater/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"key-policy-updater/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.186.0"}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}}},"constructInfo":{"fqn":"aws-cdk-lib.App","version":"2.186.0"}}}
|