File tree 2 files changed +16
-0
lines changed
packages/@aws-cdk/aws-codepipeline-actions
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export class EcsDeployAction extends Action {
55
55
provider : 'ECS' ,
56
56
artifactBounds : deployArtifactBounds ( ) ,
57
57
inputs : [ determineInputArtifact ( props ) ] ,
58
+ resource : props . service
58
59
} ) ;
59
60
60
61
this . props = props ;
Original file line number Diff line number Diff line change @@ -65,6 +65,21 @@ export = {
65
65
66
66
test . done ( ) ;
67
67
} ,
68
+
69
+ "sets the target service as the action's backing resource" ( test : Test ) {
70
+ const service = anyEcsService ( ) ;
71
+ const artifact = new codepipeline . Artifact ( 'Artifact' ) ;
72
+
73
+ const action = new cpactions . EcsDeployAction ( {
74
+ actionName : 'ECS' ,
75
+ service,
76
+ input : artifact
77
+ } ) ;
78
+
79
+ test . equal ( action . actionProperties . resource , service ) ;
80
+
81
+ test . done ( ) ;
82
+ } ,
68
83
} ,
69
84
} ;
70
85
You can’t perform that action at this time.
0 commit comments