From c7da201f44f7fc81480b8fbebea7b3a265b4aa66 Mon Sep 17 00:00:00 2001 From: Piradeep Kandasamy Date: Thu, 27 Jun 2019 17:31:05 -0700 Subject: [PATCH] Add deprecated annotation --- .../@aws-cdk/aws-ecs/lib/base/base-service.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 52079f93944d9..68dcbf4d91f83 100644 --- a/packages/@aws-cdk/aws-ecs/lib/base/base-service.ts +++ b/packages/@aws-cdk/aws-ecs/lib/base/base-service.ts @@ -73,6 +73,21 @@ export interface BaseServiceProps { * @default - AWS Cloud Map service discovery is not enabled. */ readonly cloudMapOptions?: CloudMapOptions; + + /** + * Whether the new long ARN format has been enabled on ECS services. + * NOTE: This assumes customer has opted into the new format for the IAM role used for the service, and is a + * workaround for a current bug in Cloudformation in which the service name is not correctly returned when long ARN is + * enabled. + * + * Old ARN format: arn:aws:ecs:region:aws_account_id:service/service-name + * New ARN format: arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name + * + * See: https://docs.aws.amazon.com/AmazonECS/latest/userguide/ecs-resource-ids.html + * + * @deprecated this property is no longer used. Long arns are automatically handled by cloud formation. + */ + readonly longArnEnabled?: boolean; } /**