Skip to content

Commit d669aae

Browse files
committed
update implmentation
1 parent 11fa945 commit d669aae

File tree

10 files changed

+508
-125
lines changed

10 files changed

+508
-125
lines changed

packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.js.snapshot/IntegProviderWithWaiterStateMachineCustomRoleDefaultTestDeployAssert1C38BF52.assets.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.js.snapshot/cdk.out

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.js.snapshot/integ-provider-with-waiter-state-machine-custom-role.assets.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.js.snapshot/integ-provider-with-waiter-state-machine-custom-role.template.json

Lines changed: 106 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@
185185
{
186186
"Action": "states:StartExecution",
187187
"Effect": "Allow",
188-
"Resource": "*"
188+
"Resource": {
189+
"Ref": "MyProviderWithCustomRolewaiterstatemachineA313C5FC"
190+
}
189191
}
190192
],
191193
"Version": "2012-10-17"
@@ -198,6 +200,99 @@
198200
]
199201
}
200202
},
203+
"MyRole23935D052": {
204+
"Type": "AWS::IAM::Role",
205+
"Properties": {
206+
"AssumeRolePolicyDocument": {
207+
"Statement": [
208+
{
209+
"Action": "sts:AssumeRole",
210+
"Effect": "Allow",
211+
"Principal": {
212+
"Service": "lambda.amazonaws.com"
213+
}
214+
}
215+
],
216+
"Version": "2012-10-17"
217+
},
218+
"ManagedPolicyArns": [
219+
{
220+
"Fn::Join": [
221+
"",
222+
[
223+
"arn:",
224+
{
225+
"Ref": "AWS::Partition"
226+
},
227+
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
228+
]
229+
]
230+
}
231+
]
232+
}
233+
},
234+
"MyRole2DefaultPolicy05107F99": {
235+
"Type": "AWS::IAM::Policy",
236+
"Properties": {
237+
"PolicyDocument": {
238+
"Statement": [
239+
{
240+
"Action": "lambda:InvokeFunction",
241+
"Effect": "Allow",
242+
"Resource": [
243+
{
244+
"Fn::GetAtt": [
245+
"IsComplete544AE5AD",
246+
"Arn"
247+
]
248+
},
249+
{
250+
"Fn::GetAtt": [
251+
"OnEvent74718524",
252+
"Arn"
253+
]
254+
},
255+
{
256+
"Fn::Join": [
257+
"",
258+
[
259+
{
260+
"Fn::GetAtt": [
261+
"IsComplete544AE5AD",
262+
"Arn"
263+
]
264+
},
265+
":*"
266+
]
267+
]
268+
},
269+
{
270+
"Fn::Join": [
271+
"",
272+
[
273+
{
274+
"Fn::GetAtt": [
275+
"OnEvent74718524",
276+
"Arn"
277+
]
278+
},
279+
":*"
280+
]
281+
]
282+
}
283+
]
284+
}
285+
],
286+
"Version": "2012-10-17"
287+
},
288+
"PolicyName": "MyRole2DefaultPolicy05107F99",
289+
"Roles": [
290+
{
291+
"Ref": "MyRole23935D052"
292+
}
293+
]
294+
}
295+
},
201296
"MyProviderWithCustomRoleframeworkonEventCE6B50CD": {
202297
"Type": "AWS::Lambda::Function",
203298
"Properties": {
@@ -331,7 +426,7 @@
331426
"Handler": "framework.isComplete",
332427
"Role": {
333428
"Fn::GetAtt": [
334-
"MyRoleF48FFE04",
429+
"MyRole23935D052",
335430
"Arn"
336431
]
337432
},
@@ -347,8 +442,8 @@
347442
"Timeout": 900
348443
},
349444
"DependsOn": [
350-
"MyRoleDefaultPolicyA36BE1DD",
351-
"MyRoleF48FFE04"
445+
"MyRole2DefaultPolicy05107F99",
446+
"MyRole23935D052"
352447
]
353448
},
354449
"MyProviderWithCustomRoleframeworkisCompleteinlinePolicyAddedToExecutionRole0EB28FB28": {
@@ -372,7 +467,7 @@
372467
"PolicyName": "MyProviderWithCustomRoleframeworkisCompleteinlinePolicyAddedToExecutionRole0EB28FB28",
373468
"Roles": [
374469
{
375-
"Ref": "MyRoleF48FFE04"
470+
"Ref": "MyRole23935D052"
376471
}
377472
]
378473
}
@@ -398,7 +493,7 @@
398493
"PolicyName": "MyProviderWithCustomRoleframeworkisCompleteinlinePolicyAddedToExecutionRole10FC78DA4",
399494
"Roles": [
400495
{
401-
"Ref": "MyRoleF48FFE04"
496+
"Ref": "MyRole23935D052"
402497
}
403498
]
404499
}
@@ -432,7 +527,7 @@
432527
"Handler": "framework.onTimeout",
433528
"Role": {
434529
"Fn::GetAtt": [
435-
"MyRoleF48FFE04",
530+
"MyRole23935D052",
436531
"Arn"
437532
]
438533
},
@@ -448,8 +543,8 @@
448543
"Timeout": 900
449544
},
450545
"DependsOn": [
451-
"MyRoleDefaultPolicyA36BE1DD",
452-
"MyRoleF48FFE04"
546+
"MyRole2DefaultPolicy05107F99",
547+
"MyRole23935D052"
453548
]
454549
},
455550
"MyProviderWithCustomRoleframeworkonTimeoutinlinePolicyAddedToExecutionRole0F64E0BFD": {
@@ -473,7 +568,7 @@
473568
"PolicyName": "MyProviderWithCustomRoleframeworkonTimeoutinlinePolicyAddedToExecutionRole0F64E0BFD",
474569
"Roles": [
475570
{
476-
"Ref": "MyRoleF48FFE04"
571+
"Ref": "MyRole23935D052"
477572
}
478573
]
479574
}
@@ -499,7 +594,7 @@
499594
"PolicyName": "MyProviderWithCustomRoleframeworkonTimeoutinlinePolicyAddedToExecutionRole158451186",
500595
"Roles": [
501596
{
502-
"Ref": "MyRoleF48FFE04"
597+
"Ref": "MyRole23935D052"
503598
}
504599
]
505600
}

packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider-with-waiter-state-machine-custom-role.js.snapshot/integ.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)