Core: CfnCodeDeployBlueGreenHook TestTrafficRoute LogicalID cant be empty or undefined. #33020
Labels
@aws-cdk/aws-codedeploy
Related to AWS CodeDeploy
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
The documentation for the CfnCodeDeployBlueGreenHook states that the test listener for the TrafficRoutingConfig object is optional. Furthermore the blue-green-hook-syntax example states the LogicalID for the TestTrafficRoute is not required.
However, the testTrafficRoute type does not allow undefined as a value, and when I provide an empty string I get the following error in my AWS CloudFormation stack:
Invalid CloudFormation template: Logical Resource ID cannot be empty
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I can specify
undefined
or“”
for the TestTrafficRoute LogicalID, when no aws::ElasticLoadBalancingV2::Listener test listener Is required.Current Behavior
I get the following error in my AWS CloudFormation stack:
Invalid CloudFormation template: Logical Resource ID cannot be empty
Reproduction Steps
Recreate the CfnCodeDeployBlueGreenHook template example in cdk, and try to specify ”” for the testTrafficRoute LogicalID
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.164.1
Framework Version
No response
Node.js Version
v20.18.0
OS
MacOS
Language
TypeScript
Language Version
TypeScript (4.9.4)
Other information
No response
The text was updated successfully, but these errors were encountered: