Closed Inqnuam closed 1 year ago
AWS Application Load Balancer listener rule allows to set multiple http-header key-value.
Currently this isn't possible with Serverless Framework as "header" is an object which accepts only a "name" and "values"
service: sls-project frameworkVersion: "3" package: individually: true provider: name: aws runtime: nodejs18.x versionFunctions: false region: eu-west-3 vpc: subnetIds: [subnet-0e2db7f9558f501d7, subnet-0cde9f3600cab039a] securityGroupIds: [sg-029d2fbba38db2dc7] functions: lambda: handler: src/handlers/lambda.default events: - alb: listenerArn: arn:aws:elasticloadbalancing:xxxx priority: 936 conditions: path: "/users" method: [GET] header: name: Content-Type values: - application/json
N/A
Framework Core: 3.29.0 (local) Plugin: 6.2.3 SDK: 4.3.2
@Inqnuam thanks for reporting. That's surprising only support for single header was configured.
PR that enhances this is welcome!
Are you certain it's a bug?
Is the issue caused by a plugin?
Are you using the latest v3 release?
Is there an existing issue for this?
Issue description
AWS Application Load Balancer listener rule allows to set multiple http-header key-value.
Currently this isn't possible with Serverless Framework as "header" is an object which accepts only a "name" and "values"
Service configuration (serverless.yml) content
Command name and used flags
N/A
Command output
Environment information