Skip to content

Commit

Permalink
Fixed Lambda Handler reference (#11)
Browse files Browse the repository at this point in the history
Mutation test failing due to `ESOCKETTIMEDOUT` on npm registry.
  • Loading branch information
xavier-thomas committed Aug 6, 2020
1 parent 427adda commit ac3b524
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

# <<<----- ADD NEW VERSIONS HERE

## 2.0.3 - (August 06, 2020)
### Changed
- corrected Lambda handler reference
- Added CF Stack Export for LambdaRole

## 2.0.2 - (August 05, 2020)
### Changed
- Added Tags for pipeline waiter SAR app
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:673103718481:applications/CodePipeline-Waiter
SemanticVersion: 2.0.2
SemanticVersion: 2.0.3
# Optional Parameter to control the export name of the nested stack
Parameters:
ExportPrefix: !Ref AWS::StackName
Expand Down Expand Up @@ -177,9 +177,9 @@ If you are not using Cloudformation, provision a CodePipeline stage to invoke th
#If they are in another account, they need the correct trust permissions. See above section in readme.
UserParameters: |
{
"targetname":"target-pipeline-name", #Required
"assumerolearn":"arn:aws:iam::123456789:role/example-role-for-target-pipeline-name", #Required
"trigger": true #Optional. Defaults to false
"targetname":"target-pipeline-name", //Required
"assumerolearn":"arn:aws:iam::123456789:role/example-role-for-target-pipeline-name", //Required
"trigger": true //Optional. Defaults to false
}
RunOrder: 1

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

Expand Down
9 changes: 7 additions & 2 deletions codepipeline-waiter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Metadata:
LicenseUrl: LICENSE
Name: CodePipeline-Waiter
ReadmeUrl: README.md
SemanticVersion: 2.0.2
SemanticVersion: 2.0.3
SourceCodeUrl: https://github.com/xavier-thomas/aws-codepipeline-waiter
SpdxLicenseId: BSD-3-Clause

Expand All @@ -33,7 +33,7 @@ Resources:
PipelineWaiterLambda:
Type: AWS::Serverless::Function
Properties:
Handler: src/index.handler
Handler: index.handler
Runtime: nodejs12.x
CodeUri: ./dist
MemorySize: 128
Expand Down Expand Up @@ -69,3 +69,8 @@ Outputs:
Value: !Ref PipelineWaiterLambda
Export:
Name: !Sub ${ExportPrefix}PipelineWaiterLambdaName

PipelineWaiterLambdaRoleArn:
Value: !GetAtt PipelineWaiterLambdaRole.Arn
Export:
Name: !Sub ${ExportPrefix}PipelineWaiterLambdaRoleArn
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-codepipeline-waiter",
"version": "2.0.2",
"version": "2.0.3",
"description": "An AWS lambda for a deployment AWS code-pipeline to monitor and wait for another pipeline.",
"main": "src/index.js",
"keywords": [
Expand Down

0 comments on commit ac3b524

Please sign in to comment.