Skip to main content
McAfee MVISION Cloud

Associate Lambda-based Policy to a Custom AWS Service

As a Security Operations Admin, you can secure AWS services across your organization. When these services run critical workloads, you need instant visibility to monitor the services. MVISION Cloud can configure the accounts to support near real-time monitoring. MVISION Cloud reports misconfigurations in under five minutes (if those accounts have near real-time monitoring enabled). 

To accomplish this, associate a Lambda-code to a custom policy that is applicable to one or more AWS services. Then the service can access and leverage Near-Real-Time (NRT) support to detect configuration audit violations.  

NOTE: If you've already created a custom policy based on Lambda code, you will need to associate specific AWS services to the policy to allow near real-time evaluation of those policies.  

If a policy does not already exist, to set up NRT support for a custom Lambda policy, you will need to create a policy from a policy template.  

  1. Go to Policy > Policy Templates.
  2. Search for the AWS Lambda policy template. Click the List icon to display results. 
  3. Select the AWS Lambda template and click Actions > Create Policy. aws_lambda_template.png
  4. On the Description page, enter a name for the policy, (for example, AWS Lambda), then click Next.  
    aws_lambda_template_description.png
  5. On the Rules for AWS Lambda page, select H, M, or L to generate a High, Medium, or Low severity incident. 
    aws_lamdba_template_upload.png
  6. To upload a Lambda script that is associated with a specific AWS service, select one of the following:
    • Upload a Lambda Script
    • Import it from an AWS Account
  7. Select Accounts. Click to select the accounts to apply this script.
  8. Select Services. Click to select the AWS Services you want this Lambda function applied to. 
    NOTE: You must select at least one service for Near Real-Time DLP to be enabled for this policy. 
  9. Select File. Click to upload a ZIP file containing the Lambda script you want to use as the basis of this policy. 
  10. Create an Exception. Click to create exceptions in the available categories. 
  11. Click Next
  12. Define Responses
  13. Click Next
  14. Review your policy and activate it.  
  • Was this article helpful?