You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot use 'in' operator to search for 'CidrIp' in {"Fn::If":["ExternalLB",{"CidrIp":"0.0.0.0/0","FromPort":"${LBExternalPort}","IpProtocol":"tcp","ToPort":"${LBExternalPort}"}]}
Stacktrace during dk deploy
❌ Deployment failed: TypeError: Cannot use 'in' operator to search for 'CidrIp' in {"Fn::If":["ExternalLB",{"CidrIp":"0.0.0.0/0","FromPort":"${LBExternalPort}","IpProtocol":"tcp","ToPort":"${LBExternalPort}"}]}
at findFirst (/Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:376:418325)
at new SecurityGroupRule (/Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:376:418747)
at /Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:376:422524
at Array.map (<anonymous>)
at SecurityGroupChanges.readInlineRules (/Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:376:422517)
at new SecurityGroupChanges (/Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:376:420429)
at new TemplateDiff (/Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:376:424451)
at calculateTemplateDiff (/Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:376:436320)
at Object.diffTemplate (/Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:376:434628)
at printSecurityDiff (/Users/wonkun/brazil-pkg-cache/packages/CDKBuild/CDKBuild-4.x.134007.0/AL2_x86_64/DEV.STD.PTHREAD/build/staging-cdk/node_modules/aws-cdk/lib/index.js:415:126404)
Cannot use 'in' operator to search for 'CidrIp' in {"Fn::If":["ExternalLB",{"CidrIp":"0.0.0.0/0","FromPort":"${LBExternalPort}","IpProtocol":"tcp","ToPort":"${LBExternalPort}"}]}
Expected Behavior
cdk diff and deploy work
Current Behavior
cdk diff and deploy fails
Reproduction Steps
Deploy a stack in CFN console with the following template.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Error I got during
cdk diff
command;Stacktrace during
dk deploy
Expected Behavior
cdk diff and deploy work
Current Behavior
cdk diff and deploy fails
Reproduction Steps
cdk diff
against the following CDK stack code.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.85.0 and 2.87.0
Framework Version
No response
Node.js Version
v18.16.0
OS
Linux and MacOS (M1)
Language
Typescript
Language Version
Typescript(5.1.3)
Other information
No response
The text was updated successfully, but these errors were encountered: