serverless/serverless
Ver no GitHubCannot set multiple key-value for an alb event "query" with the same key
Open
#11.880 aberto em 1 de abr. de 2023
cat/aws-event-albenhancementgood first issuehelp wanted
Description
Are you certain it's a bug?
- Yes, it looks like a bug
Is the issue caused by a plugin?
- It is not a plugin issue
Are you using the latest v3 release?
- Yes, I'm using the latest v3 release
Is there an existing issue for this?
- I have searched existing issues, it hasn't been reported yet
Issue description
AWS Application Load Balancer listener rule allows to set multiple values for a single query key.
Currently this is not possible with Serverless Framework as query "value" is defined as string.
Service configuration (serverless.yml) content
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]
query:
role: admin
role: guest
Command name and used flags
"N/A
Command output
"N/A
Environment information
Framework Core: 3.29.0 (local)
Plugin: 6.2.3
SDK: 4.3.2