From c68dae774102e943e7f8a9da60c9cee948827317 Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Sun, 28 Jun 2026 16:55:53 -0400 Subject: [PATCH] Enable unique IMDSv2 launch-template naming The requireImdsv2 aspect names its launch template "LaunchTemplate" by default, which collided with an existing account-global InstanceLaunchTemplate and failed the first deploy. Enabling @aws-cdk/aws-ec2:uniqueImdsv2TemplateName makes the name hash-unique. --- cdk.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdk.json b/cdk.json index 4070f75..486de6f 100644 --- a/cdk.json +++ b/cdk.json @@ -16,6 +16,7 @@ "context": { "@aws-cdk/aws-lambda:recognizeLayerVersion": true, "@aws-cdk/core:checkSecretUsage": true, - "@aws-cdk/core:target-partitions": ["aws"] + "@aws-cdk/core:target-partitions": ["aws"], + "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true } }