appleboy/lambda-action

Can't specify Subnet and Security group.. Whats missing ?

Opened this issue · 9 comments

          @appleboy 

Attached source config..
Screenshot 2024-06-11 at 1 33 27 pm
Screenshot 2024-06-11 at 1 28 52 pm

Please help me to find whats wrong

Originally posted by @Minu2020 in #76 (comment)

Any update ?

@appleboy any update ?

@Minu2020 I see the error message: Subnet IDs must coexist or be both empty list

You must check the existence of Subnet IDs. SubnetIds must contain two values.

      VpcConfig:
        SecurityGroupIds:
          - sg-085912345678492fb
        SubnetIds:
          - subnet-071f712345678e7c8
          - subnet-07fd123456788a036

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-subnetids

@appleboy The error is not Subnet IDs must coexist or be both empty list, It is Subnet IDs and Security Group IDs must coexist or be both empty list.. Why are you closing the issues without fixing it ?

@Minu2020 SubnetIds must contain two values not only one value.

@Minu2020 I will handle the error message.

@appleboy Can you give me the exact syntax for SubnetIds and SecurityGroudIDs.. I tried a lot of combination and it didn't worked for me..
eg:
subnets: subnet-0b46e74656af4c4e9, subnet-0cb2c98a997932642
securitygroups: "sg-0757b6493bbb7a635"

      subnets: [subnet-0b46e74656af4c4e9, subnet-0cb2c98a997932642]
      securitygroups: "sg-0757b6493bbb7a635"

      subnets: ["subnet-0b46e74656af4c4e9", "subnet-0cb2c98a997932642"]
      securitygroups: "sg-0757b6493bbb7a635"

      subnets: [ 'subnet-0b46e74656af4c4e9', 'subnet-0cb2c98a997932642']
      securitygroups: "sg-0757b6493bbb7a635"

@Minu2020 I will check it.

@appleboy any update ?