Execution role does not have permissions to call CreateNetworkInterface on EC2

When trying to configure vpc_config you get the following error

Jets version 2.3.18
Error message in cloudformation:
The provided execution role does not have permissions to call CreateNetworkInterface on EC2 (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 111a6a04-90b6-4b0f-9611-d57e66c56f4d; Proxy: null)

Solution:
Go to your lambda function and look for the executing role. This should be auto generated by jets. Add the policy named AWSLambdaVPCAccessExecutionRole

Seems to be related to an issue on github.

For posterity, fixed in Jets v3

1 Like