Skip to content

Commit

Permalink
fix(codepipeline-actions): set service as backing resource for EcsDep…
Browse files Browse the repository at this point in the history
…loyAction (#3085)
  • Loading branch information
strax authored and Elad Ben-Israel committed Jun 27, 2019
1 parent 64a203f commit f2293e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class EcsDeployAction extends Action {
provider: 'ECS',
artifactBounds: deployArtifactBounds(),
inputs: [determineInputArtifact(props)],
resource: props.service
});

this.props = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ export = {

test.done();
},

"sets the target service as the action's backing resource"(test: Test) {
const service = anyEcsService();
const artifact = new codepipeline.Artifact('Artifact');

const action = new cpactions.EcsDeployAction({
actionName: 'ECS',
service,
input: artifact
});

test.equal(action.actionProperties.resource, service);

test.done();
},
},
};

Expand Down

0 comments on commit f2293e0

Please sign in to comment.