appleboy / lambda-action

GitHub Action for Deploying Lambda code to an existing function
https://github.com/marketplace/actions/aws-lambda-deploy
MIT License
394 stars 58 forks source link

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

Open Minu2020 opened 5 months ago

Minu2020 commented 5 months ago
          @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 https://github.com/appleboy/lambda-action/issues/76#issuecomment-2159715079

Minu2020 commented 4 months ago

Any update ?

Minu2020 commented 4 months ago

@appleboy any update ?

appleboy commented 4 months ago

@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

Minu2020 commented 4 months ago

@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 ?

appleboy commented 4 months ago

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

appleboy commented 4 months ago

@Minu2020 I will handle the error message.

Minu2020 commented 4 months ago

@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"
appleboy commented 4 months ago

@Minu2020 I will check it.

Minu2020 commented 4 months ago

@appleboy any update ?