ZonalConfig

class aws_cdk.aws_codedeploy.ZonalConfig(*, first_zone_monitor_duration=None, minimum_healthy_hosts_per_zone=None, monitor_duration=None)

Bases: object

Configuration for CodeDeploy to deploy your application to one Availability Zone at a time within an AWS Region.

Parameters:
  • first_zone_monitor_duration (Optional[Duration]) – 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 Default: - the same value as monitorDuration

  • minimum_healthy_hosts_per_zone (Optional[MinimumHealthyHostsPerZone]) – 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. Default: - 0 percent

  • monitor_duration (Optional[Duration]) – 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 Default: - CodeDeploy starts deploying to the next Availability Zone immediately

ExampleMetadata:

infused

Example:

deployment_config = codedeploy.ServerDeploymentConfig(self, "DeploymentConfiguration",
    minimum_healthy_hosts=codedeploy.MinimumHealthyHosts.count(2),
    zonal_config=codedeploy.ZonalConfig(
        monitor_duration=Duration.minutes(30),
        first_zone_monitor_duration=Duration.minutes(60),
        minimum_healthy_hosts_per_zone=codedeploy.MinimumHealthyHostsPerZone.count(1)
    )
)

Attributes

first_zone_monitor_duration

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

Default:
  • the same value as monitorDuration

minimum_healthy_hosts_per_zone

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.

Default:
  • 0 percent

See:

https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html#minimum-healthy-hosts-az

monitor_duration

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

Default:
  • CodeDeploy starts deploying to the next Availability Zone immediately