Skip to content

Commit ac3b524

Browse files
committed
Fixed Lambda Handler reference (#11)
Mutation test failing due to `ESOCKETTIMEDOUT` on npm registry.
1 parent 427adda commit ac3b524

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

CHANGELOG.MD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
# <<<----- ADD NEW VERSIONS HERE
99

10+
## 2.0.3 - (August 06, 2020)
11+
### Changed
12+
- corrected Lambda handler reference
13+
- Added CF Stack Export for LambdaRole
14+
1015
## 2.0.2 - (August 05, 2020)
1116
### Changed
1217
- Added Tags for pipeline waiter SAR app

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Resources:
6262
Properties:
6363
Location:
6464
ApplicationId: arn:aws:serverlessrepo:us-east-1:673103718481:applications/CodePipeline-Waiter
65-
SemanticVersion: 2.0.2
65+
SemanticVersion: 2.0.3
6666
# Optional Parameter to control the export name of the nested stack
6767
Parameters:
6868
ExportPrefix: !Ref AWS::StackName
@@ -177,9 +177,9 @@ If you are not using Cloudformation, provision a CodePipeline stage to invoke th
177177
#If they are in another account, they need the correct trust permissions. See above section in readme.
178178
UserParameters: |
179179
{
180-
"targetname":"target-pipeline-name", #Required
181-
"assumerolearn":"arn:aws:iam::123456789:role/example-role-for-target-pipeline-name", #Required
182-
"trigger": true #Optional. Defaults to false
180+
"targetname":"target-pipeline-name", //Required
181+
"assumerolearn":"arn:aws:iam::123456789:role/example-role-for-target-pipeline-name", //Required
182+
"trigger": true //Optional. Defaults to false
183183
}
184184
RunOrder: 1
185185

@@ -191,9 +191,9 @@ The Lambda needs to receive the following as an **UserParameters** object on the
191191
The lambda expects the following UserParameters to be supplied during invocation:
192192
```JSON
193193
{
194-
"targetname": "target-pipeline-name",
195-
"assumerolearn": "arn:aws:iam::${TargetAccountID}:role/example-role-for-target-pipeline-name",
196-
"trigger": true / false
194+
"targetname": "target-pipeline-name", //Required
195+
"assumerolearn": "arn:aws:iam::${TargetAccountID}:role/example-role-for-target-pipeline-name", //#Required
196+
"trigger": true / false //Optional. Defaults to false
197197
}
198198
```
199199

codepipeline-waiter.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Metadata:
2424
LicenseUrl: LICENSE
2525
Name: CodePipeline-Waiter
2626
ReadmeUrl: README.md
27-
SemanticVersion: 2.0.2
27+
SemanticVersion: 2.0.3
2828
SourceCodeUrl: https://github.com/xavier-thomas/aws-codepipeline-waiter
2929
SpdxLicenseId: BSD-3-Clause
3030

@@ -33,7 +33,7 @@ Resources:
3333
PipelineWaiterLambda:
3434
Type: AWS::Serverless::Function
3535
Properties:
36-
Handler: src/index.handler
36+
Handler: index.handler
3737
Runtime: nodejs12.x
3838
CodeUri: ./dist
3939
MemorySize: 128
@@ -69,3 +69,8 @@ Outputs:
6969
Value: !Ref PipelineWaiterLambda
7070
Export:
7171
Name: !Sub ${ExportPrefix}PipelineWaiterLambdaName
72+
73+
PipelineWaiterLambdaRoleArn:
74+
Value: !GetAtt PipelineWaiterLambdaRole.Arn
75+
Export:
76+
Name: !Sub ${ExportPrefix}PipelineWaiterLambdaRoleArn

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-codepipeline-waiter",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "An AWS lambda for a deployment AWS code-pipeline to monitor and wait for another pipeline.",
55
"main": "src/index.js",
66
"keywords": [

0 commit comments

Comments
 (0)