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:
parent
9f18ecab50
commit
c68dae7741
1 changed files with 2 additions and 1 deletions
3
cdk.json
3
cdk.json
|
|
@ -16,6 +16,7 @@
|
||||||
"context": {
|
"context": {
|
||||||
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
||||||
"@aws-cdk/core:checkSecretUsage": true,
|
"@aws-cdk/core:checkSecretUsage": true,
|
||||||
"@aws-cdk/core:target-partitions": ["aws"]
|
"@aws-cdk/core:target-partitions": ["aws"],
|
||||||
|
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue