Enable unique IMDSv2 launch-template naming

The requireImdsv2 aspect names its launch template "<id>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.
This commit is contained in:
Adam Moussa 2026-06-28 16:55:53 -04:00
parent 9f18ecab50
commit c68dae7741
No known key found for this signature in database

View file

@ -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
}
}