Create serverless function policies
Create policies that apply posture rules to selected serverless functions.
The following procedure describes how to create policies for serverless functions.
Under Posture Management, select Rules & Policies → Cloud Security (under Policies) → click Create Policy.
On the Details step of the wizard:
Fill in these fields:
Policy Name (required): An alias you provide to identify the policy
Description (required): A description of the policy
Labels (optional): Assign labels to categorize and organize the policy based on specific criteria or attributes. Labels help in easily identifying and filtering policies
Click Next.
On the Rules step of the wizard.
Select rules that check for violations when scanning serverless functions: Options:
All Matching Filter Criteria: Allows you to filter for rules according to criteria
From Rules List. Filter the rues list by the type of serverless function.
Select From Rules List
Select Asset Type from the Select Field menu of the query.
Select a rule or multiple rules from the resulting list.
All Rules: This option is not recommended as it will probably create a large number of issues/
Note
For more information about rules, refer to Manage serverless function rules.
Click Next.
On the Scope step of the of the wizard:
Define the scope of the policy by selecting the assets it will apply to. Options:
From Cloud Accounts (recommended): Select one or more accounts to which this policy applies
All Cloud Accounts (not recommended): Selecting this option will likely result in a large volume of issues. For more relevant and higher fidelity results, select the From Cloud Accounts option
Click Done.
Last updated
Was this helpful?
