diff --git a/infrastructure/terraform/modules/lambda_execution_role/main.tf b/infrastructure/terraform/modules/lambda_execution_role/main.tf index fa657afd..af035ebb 100644 --- a/infrastructure/terraform/modules/lambda_execution_role/main.tf +++ b/infrastructure/terraform/modules/lambda_execution_role/main.tf @@ -19,19 +19,19 @@ resource "aws_iam_role_policy_attachment" "basic_logs" { policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" } -resource "aws_iam_role_policy" "ecr_pull" { - role = aws_iam_role.this.name +# resource "aws_iam_role_policy" "ecr_pull" { +# role = aws_iam_role.this.name - policy = jsonencode({ - Version = "2012-10-17" - Statement = [{ - Effect = "Allow" - Action = [ - "ecr:GetAuthorizationToken", - "ecr:BatchGetImage", - "ecr:GetDownloadUrlForLayer" - ] - Resource = "*" - }] - }) -} +# policy = jsonencode({ +# Version = "2012-10-17" +# Statement = [{ +# Effect = "Allow" +# Action = [ +# "ecr:GetAuthorizationToken", +# "ecr:BatchGetImage", +# "ecr:GetDownloadUrlForLayer" +# ] +# Resource = "*" +# }] +# }) +# }