Commit a9547e6
committed
fix(elbv2): boolean ALB attributes not reflected in CloudFormation when set to false
When boolean ALB properties like dropInvalidHeaderFields,
preserveHostHeader, xAmznTlsVersionAndCipherSuiteHeaders,
preserveXffClientPort, and wafFailOpen were explicitly set to false,
they were omitted from the CloudFormation template because the code
used truthy checks (if (props.x)) instead of undefined checks
(if (props.x !== undefined)). This meant changing these properties
from true to false would not update the ALB configuration.
Now all boolean ALB attributes use !== undefined checks and emit
both 'true' and 'false' values, consistent with how http2Enabled
was already handled.
Closes #364091 parent 08b9280 commit a9547e6
File tree
2 files changed
+47
-5
lines changed- packages/aws-cdk-lib/aws-elasticloadbalancingv2
- lib/alb
- test/alb
2 files changed
+47
-5
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
176 | 218 | | |
177 | 219 | | |
178 | 220 | | |
| |||
0 commit comments