Skip to content

Commit

Permalink
Pass Trigger Configurations to CodeDeploy (davidgf#45)
Browse files Browse the repository at this point in the history
* Pass Trigger Configurations to CodeDeploy

* Add fixtures for TriggerConfigurations
  • Loading branch information
nason authored and davidgf committed Jan 14, 2019
1 parent 7ce93b4 commit 3d0c3a9
Show file tree
Hide file tree
Showing 7 changed files with 1,314 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ You can see a working example in the [example folder](./example/).
* `preTrafficHook`: (optional) validation Lambda function that runs before traffic shifting. It must use te CodeDeploy SDK to notify about this step's success or failure (more info [here](https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html)).
* `postTrafficHook`: (optional) validation Lambda function that runs after traffic shifting. It must use te CodeDeploy SDK to notify about this step's success or failure (more info [here](https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html))
* `alarms`: (optional) list of CloudWatch alarms. If any of them is triggered duringt the deployment, the associated Lambda function will automatically roll back to the previous version.
* `triggerConfigurations`: (optional) list of CodeDeploy Triggers. See more details in the [CodeDeploy TriggerConfiguration Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html), or [this CodeDeploy notifications guide](https://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-sns-event-notifications-create-trigger.html) for example uses

### Default configurations

Expand Down
2 changes: 1 addition & 1 deletion fixtures/1.output.json
Original file line number Diff line number Diff line change
Expand Up @@ -640,4 +640,4 @@
}
}
}
}
}
Loading

0 comments on commit 3d0c3a9

Please sign in to comment.