While trying to set up a blue/green deployment I hit the following issue:
error: Plan apply failed: Error creating CodeDeploy deployment group: InvalidECSServiceException: Deployment group's ECS service must be configured for a CODE_DEPLOY deployment controller.
status code: 400, request id: b9314f00-ef3e-467e-a7b0-a3bd87600484
So far I tried to create aws.ecs.Cluster with custom settings and pass it to awsx.ecs.Cluster but the typing is not right:
const myCluster = new aws.ecs.Cluster('myCluster', {
settings: {
}
})
ends up with:
Type '{}' is not assignable to type 'Input<ClusterSetting>[] | Promise<Input<ClusterSetting>[]> | OutputInstance<Input<ClusterSetting>[]> | undefined'.
and I am unable to find ClusterSetting type anywhere.
How do I set up ServiceDeploymentController type for a custom aws.ecs.Cluster?