appleboy / lambda-action

GitHub Action for Deploying Lambda code to an existing function

Home Page:https://github.com/marketplace/actions/aws-lambda-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InvalidParameterValueException: SubnetIds and SecurityIds must coexist or be both empty list.

vriabets-blackbird opened this issue · comments

In description of lambda I'm describing parameter like this

- name: default deploy
  uses: appleboy/lambda-action@v0.1.9
  with:
    aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
    aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    function_name: func-1
    source: functions/func-1/main
    memory_size: 128
    timeout: 300
    handler: main
    role: "arn:aws:iam::foo:role/func-1-role"
    runtime: go1.x
    subnets: "subnet-123456,subnet-123465,subnet-423156"
    securitygroups: "sg-asdqwf324234"
    environment: ENVIRONMENT=foo

And I keep receiving error
InvalidParameterValueException InvalidParameterValueException: SubnetIds and SecurityIds must coexist or be both empty list.
I've tried to find example how to describe the subnets and SG but unfortunately didn't find any.

How to properly provide list of subnets and SG's here?

[] Not working as expected

	status code: 400, request id: f53d420d-1d59-4022-ba47-57b6a584c979
2023/11/02 15:50:30 ValidationException: 1 validation error detected: Value '[[subnet-213124124, subnet-1231242, subnet-12341232]]' at 'vpcConfig.subnetIds' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 1024, Member must have length greater than or equal to 0, Member must satisfy regular expression pattern: ^subnet-[0-9a-z]*$]

@vriabets-blackbird I wiil take it.

@appleboy any update ?