Skip to content

Commit

Permalink
Use spread operator for lambda action, test
Browse files Browse the repository at this point in the history
* use spread operator for lambda invoke action;
* revert `integ.pipeline-cfn.expected.json`
  • Loading branch information
Radoslaw Smogura committed Jan 11, 2019
1 parent 17e2fbc commit 96b1628
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@
"PipelineC660917D": {
"Type": "AWS::CodePipeline::Pipeline",
"Properties": {
"ArtifactStore": {
"Location": {
"Ref": "PipelineArtifactsBucket22248F97"
},
"Type": "S3"
},
"RoleArn": {
"Fn::GetAtt": [
"PipelineRoleD68726F7",
Expand Down Expand Up @@ -215,13 +221,7 @@
],
"Name": "CFN"
}
],
"ArtifactStore": {
"Location": {
"Ref": "PipelineArtifactsBucket22248F97"
},
"Type": "S3"
}
]
},
"DependsOn": [
"PipelineRoleD68726F7",
Expand Down Expand Up @@ -254,4 +254,4 @@
}
}
}
}
}
4 changes: 1 addition & 3 deletions packages/@aws-cdk/aws-lambda/lib/pipeline-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ export interface PipelineInvokeActionProps extends CommonPipelineInvokeActionPro
export class PipelineInvokeAction extends codepipeline.Action {
constructor(scope: cdk.Construct, id: string, props: PipelineInvokeActionProps) {
super(scope, id, {
stage: props.stage,
role: props.role,
runOrder: props.runOrder,
...props,
category: codepipeline.ActionCategory.Invoke,
provider: 'Lambda',
artifactBounds: codepipeline.defaultBounds(),
Expand Down

0 comments on commit 96b1628

Please sign in to comment.