You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- new customType property to indicate that should not use the prefix for default CodeDeploy config
- adds unit test for the case where customType is true
- adds test case where customType is true
- adds readme descriptions of the new feature
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ functions:
43
43
- http: GET hello
44
44
deploymentSettings:
45
45
type: Linear10PercentEvery1Minute
46
+
customType: false
46
47
alias: Live
47
48
preTrafficHook: preHook
48
49
postTrafficHook: postHook
@@ -60,7 +61,7 @@ You can see a working example in the [example folder](./example/).
60
61
61
62
## <a name="configuration"></a>Configuration
62
63
63
-
* `type`: (required) defines how the traffic will be shifted between Lambda function versions. It must be one of the following:
64
+
* `type`: (required) defines how the traffic will be shifted between Lambda function versions. It must be one of the following if customType is not true:
64
65
- `Canary10Percent5Minutes`: shifts 10 percent of traffic in the first increment. The remaining 90 percent is deployed five minutes later.
65
66
- `Canary10Percent10Minutes`: shifts 10 percent of traffic in the first increment. The remaining 90 percent is deployed 10 minutes later.
66
67
- `Canary10Percent15Minutes`: shifts 10 percent of traffic in the first increment. The remaining 90 percent is deployed 15 minutes later.
@@ -70,6 +71,7 @@ You can see a working example in the [example folder](./example/).
70
71
- `Linear10PercentEvery3Minutes`: shifts 10 percent of traffic every three minutes until all traffic is shifted.
71
72
- `Linear10PercentEvery10Minutes`: shifts 10 percent of traffic every 10 minutes until all traffic is shifted.
72
73
- `AllAtOnce`: shifts all the traffic to the new version, useful when you only need to execute the validation hooks.
74
+
* `customType`: (optional) When set to true you can use your custom CodeDeploy Deployment Configurations. (more info [here](https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html)).
73
75
* `alias`: (required) name that will be used to create the Lambda function alias.
74
76
* `preTrafficHook`: (optional) validation Lambda function that runs before traffic shifting. It must use the 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)).
75
77
* `postTrafficHook`: (optional) validation Lambda function that runs after traffic shifting. It must use the 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))
0 commit comments