Currently, lambda events are not accepting cidr or subnets vpc params when not inside a function that is also deployed to ECS.
The expected behaviour is auto-creating the VPC for that function and reuse it, across events even if no ECS event is declared.
More Details:
Since all the VPC work is handled by ecs-plugin, not sure how to implement this other than duplicating the logic from ecs-plugin or simplify not accepting it.
Other options would be checking serverless to see if it has something implemented for it, or even use any sls vpc plugin available out there.
Currently, lambda events are not accepting
cidrorsubnetsvpc params when not inside a function that is also deployed to ECS.The expected behaviour is auto-creating the VPC for that function and reuse it, across events even if no ECS event is declared.
More Details:
Since all the VPC work is handled by ecs-plugin, not sure how to implement this other than duplicating the logic from ecs-plugin or simplify not accepting it.
Other options would be checking serverless to see if it has something implemented for it, or even use any sls vpc plugin available out there.