From 47ffe21c4275b18c1e71246410a99e5aa13a8981 Mon Sep 17 00:00:00 2001 From: Fergus Dixon Date: Wed, 5 Oct 2022 15:57:38 +0100 Subject: [PATCH] change warning to error --- packages/@aws-cdk/aws-ecs/lib/base/base-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-ecs/lib/base/base-service.ts b/packages/@aws-cdk/aws-ecs/lib/base/base-service.ts index f3776f7d5cd41..e158f9a0b36f5 100644 --- a/packages/@aws-cdk/aws-ecs/lib/base/base-service.ts +++ b/packages/@aws-cdk/aws-ecs/lib/base/base-service.ts @@ -464,7 +464,7 @@ export abstract class BaseService extends Resource Annotations.of(this).addWarning('taskDefinition and launchType are blanked out when using external deployment controller.'); } if (props.circuitBreaker && props.deploymentController?.type !== DeploymentControllerType.ECS) { - Annotations.of(this).addWarning('Deployment circuit breaker requires the ECS deployment controller.'); + Annotations.of(this).addError('Deployment circuit breaker requires the ECS deployment controller.'); } this.serviceArn = this.getResourceArnAttribute(this.resource.ref, { service: 'ecs',