interface ZonalConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeDeploy.ZonalConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#ZonalConfig |
Java | software.amazon.awscdk.services.codedeploy.ZonalConfig |
Python | aws_cdk.aws_codedeploy.ZonalConfig |
TypeScript (source) | aws-cdk-lib » aws_codedeploy » ZonalConfig |
Configuration for CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.
Example
const deploymentConfig = new codedeploy.ServerDeploymentConfig(this, 'DeploymentConfiguration', {
minimumHealthyHosts: codedeploy.MinimumHealthyHosts.count(2),
zonalConfig: {
monitorDuration: Duration.minutes(30),
firstZoneMonitorDuration: Duration.minutes(60),
minimumHealthyHostsPerZone: codedeploy.MinimumHealthyHostsPerZone.count(1),
},
});
Properties
Name | Type | Description |
---|---|---|
first | Duration | The period of time that CodeDeploy must wait after completing a deployment to the first Availability Zone. |
minimum | Minimum | The number or percentage of instances that must remain available per Availability Zone during a deployment. |
monitor | Duration | The period of time that CodeDeploy must wait after completing a deployment to an Availability Zone. |
firstZoneMonitorDuration?
Type:
Duration
(optional, default: the same value as monitorDuration
)
The period of time that CodeDeploy must wait after completing a deployment to the first Availability Zone.
Accepted Values:
- 0
- Greater than or equal to 1
minimumHealthyHostsPerZone?
Type:
Minimum
(optional, default: 0 percent)
The number or percentage of instances that must remain available per Availability Zone during a deployment.
This option works in conjunction with the minimumHealthyHosts
option.
monitorDuration?
Type:
Duration
(optional, default: CodeDeploy starts deploying to the next Availability Zone immediately)
The period of time that CodeDeploy must wait after completing a deployment to an Availability Zone.
Accepted Values:
- 0
- Greater than or equal to 1