I stumbled upon an issue while specifying additional NodejsFunctionProps. My code won't synthesize anymore with version 3.4.0 and throws the following error:
Lambda Functions in a public subnet can NOT access the internet. If you are aware of this limitation and would still like to place the function in a public subnet, set "allowPublicSubnet" to true
Although I specified allowPublicSubnet: true inside the functionProps it is not being passed correctly.
I was digging a bit into the code and suspect that @emmanuelnk removed the following line which was important.
Adding the line back solved my issue, please take a look at the respective PR.
Hi @berenddeboer,
I stumbled upon an issue while specifying additional NodejsFunctionProps. My code won't synthesize anymore with version
3.4.0
and throws the following error:Lambda Functions in a public subnet can NOT access the internet. If you are aware of this limitation and would still like to place the function in a public subnet, set "allowPublicSubnet" to true
Although I specified
allowPublicSubnet: true
inside thefunctionProps
it is not being passed correctly.I was digging a bit into the code and suspect that @emmanuelnk removed the following line which was important.
Adding the line back solved my issue, please take a look at the respective PR.