Commit 6ac3675
committed
fix: replace invalid MultiValueHeadersEnabled with TargetGroupAttributes for ALB TargetGroup
MultiValueHeadersEnabled is not a valid CloudFormation property on
AWS::ElasticLoadBalancingV2::TargetGroup. Multi-value headers must be
configured via TargetGroupAttributes with the key
lambda.multi_value_headers.enabled.
Changes:
- CloudFormationWriter: emit TargetGroupAttributes array when
MultiValueHeaders=true, remove it when false (instead of setting
the non-existent MultiValueHeadersEnabled property)
- albEvents.template snapshot: remove MultiValueHeadersEnabled=false,
add TargetGroupAttributes for the multi-value-headers case
- ALBEventsTests: update assertions to check TargetGroupAttributes
existence instead of MultiValueHeadersEnabled
- TestServerlessApp.ALB/serverless.template: remove stale
MultiValueHeadersEnabled from both target groups1 parent 7e84c5a commit 6ac3675
File tree
4 files changed
+39
-16
lines changed- Libraries
- src/Amazon.Lambda.Annotations.SourceGenerator/Writers
- test
- Amazon.Lambda.Annotations.SourceGenerators.Tests
- Snapshots/ServerlessTemplates
- WriterTests
- TestServerlessApp.ALB
4 files changed
+39
-16
lines changedLines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
637 | 656 | | |
638 | 657 | | |
639 | 658 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
125 | | - | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | 211 | | |
213 | 212 | | |
214 | 213 | | |
| |||
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | 229 | | |
234 | 230 | | |
235 | 231 | | |
| |||
246 | 242 | | |
247 | 243 | | |
248 | 244 | | |
249 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
| |||
290 | 289 | | |
291 | 290 | | |
292 | 291 | | |
293 | | - | |
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
| |||
309 | 307 | | |
310 | 308 | | |
311 | 309 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 310 | | |
316 | 311 | | |
317 | 312 | | |
| |||
328 | 323 | | |
329 | 324 | | |
330 | 325 | | |
331 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
332 | 330 | | |
333 | 331 | | |
334 | 332 | | |
| |||
0 commit comments