We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75779fd commit 7c3578bCopy full SHA for 7c3578b
infrastructure/terraform/modules/lambda-function/iam_role_lambda_execution_role.tf
@@ -14,6 +14,12 @@ resource "aws_iam_role_policy_attachment" "lambda_execution" {
14
policy_arn = aws_iam_policy.lambda_execution_policy.arn
15
}
16
17
+resource "aws_iam_role_policy_attachment" "lambda_function_vpc" {
18
+ count = var.vpc == null ? 0 : 1
19
+ role = aws_iam_role.lambda_execution_role.name
20
+ policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole"
21
+}
22
+
23
data "aws_iam_policy_document" "lambda_service_trust_policy" {
24
statement {
25
sid = "LambdaAssumeRole"
0 commit comments