Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
giorod3 committed Dec 3, 2024
1 parent e0c0c33 commit dadb9c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helpers/aws/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ let getLambdaTargetELBs = function(cache, source, region) {
});

return lambdaELBMap;
}
};

module.exports = {
addResult: addResult,
Expand Down
4 changes: 1 addition & 3 deletions plugins/aws/lambda/lambdaNetworkExposure.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
recommended_action: 'Ensure Lambda Function URLs have proper authorization configured and API Gateway integrations use appropriate security measures.',
apis: ['Lambda:listFunctions', 'Lambda:getFunctionUrlConfig', 'Lambda:getPolicy',
'APIGateway:getRestApis','APIGateway:getResources', 'APIGateway:getStages', 'APIGateway:getIntegration', 'ELBv2:describeLoadBalancers', 'ELBv2:describeTargetGroups',
'ELBv2:describeTargetHealth', 'ELBv2:describeListeners', 'EC2:describeSecurityGroups'],
'ELBv2:describeTargetHealth', 'ELBv2:describeListeners', 'EC2:describeSecurityGroups'],
realtime_triggers: ['lambda:CreateFunctionUrlConfig', 'lambda:UpdateFunctionUrlConfig', 'lambda:DeleteFunctionUrlConfig',
'lambda:AddPermission', 'lambda:RemovePermission',
'apigateway:CreateRestApi', 'apigateway:DeleteRestApi', 'apigateway:UpdateRestApi',
Expand Down Expand Up @@ -53,8 +53,6 @@ module.exports = {
var getPolicy = helpers.addSource(cache, source,
['lambda', 'getPolicy', region, lambda.FunctionName]);

let elbs = helpers.getAttachedELBs(cache, source, region, lambda.FunctionArn);

let lambdaResource = {
functionUrlConfig: getFunctionUrlConfig,
functionPolicy: getPolicy,
Expand Down

0 comments on commit dadb9c3

Please sign in to comment.