diff --git a/packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts b/packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts index ed33970a61ece..42f1e3a1b5c97 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts @@ -518,7 +518,7 @@ export abstract class BaseService extends Resource const arn = stack.splitArn(serviceArn, ArnFormat.SLASH_RESOURCE_NAME); const resourceName = arn.resourceName; if (!resourceName) { - throw new Error('Missing resource Name from service ARN: ${serviceArn}'); + throw new Error(`Missing resource Name from service ARN: ${serviceArn}`); } const resourceNameParts = resourceName.split('/'); if (resourceNameParts.length !== 2) {