Interface CfnServicePropsMixin.IDeploymentControllerProperty
The deployment controller to use for the service.
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.ECS
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface CfnServicePropsMixin.IDeploymentControllerProperty
Syntax (vb)
Public Interface CfnServicePropsMixin.IDeploymentControllerProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.ECS;
var deploymentControllerProperty = new DeploymentControllerProperty {
Type = "type"
};
Synopsis
Properties
| Type | The deployment controller type to use. |
Properties
Type
The deployment controller type to use.
string? Type { get; }
Property Value
Remarks
The deployment controller is the mechanism that determines how tasks are deployed for your service. The valid options are:
When you create a service which uses the ECS deployment controller, you can choose between the following deployment strategies:
Rolling update deployments are best suited for the following scenarios:
Rolling updates are the default deployment strategy for services and provide a balance between deployment safety and resource efficiency for many common application scenarios.
Amazon ECS blue/green deployments are best suited for the following scenarios:
Use a third-party deployment controller.
CodeDeploy installs an updated version of the application as a new replacement task set and reroutes production traffic from the original application task set to the replacement task set. The original task set is terminated after a successful deployment. Use this deployment controller to verify a new deployment of a service before sending production traffic to it.
When updating the deployment controller for a service, consider the following depending on the type of migration you're performing.
Resource handler returned message: "Invalid request provided: Unable to update task definition on services with a CODE_DEPLOY deployment controller.