Today I have a new AWS Lambda question, and can\'t find anywhere in Google.
I new a Lambda function, there is no question. But when I input any code in this function[eg.
If you are using terraform, just add:
resource "aws_iam_role_policy_attachment" "AWSLambdaVPCAccessExecutionRole" { role = aws_iam_role.lambda.name policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole" }