Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vriabets-blackbird opened this issue Nov 2, 2023 · 3 comments

Comments

@vriabets-blackbird
Copy link

In description of lambda I'm describing parameter like this

- name: default deploy
  uses: appleboy/[email protected]
  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?

@vriabets-blackbird
Copy link
Author

vriabets-blackbird commented Nov 2, 2023

[] 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]*$]

@appleboy
Copy link
Owner

appleboy commented Jan 2, 2024

@vriabets-blackbird I wiil take it.

@Minu2020
Copy link

@appleboy any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants