Skip to main content

Cloud Custodian Run Policy

Executes Cloud Custodian CLI run command on a given policy.

Parameters

ParameterDescription
Output DirectoryDirectory for policy output.
PolicyThe policy to run.
RegionAWS region to target.

It is possible to run policies against multiple regions by specifying a comma-separated list of regions.
For example: us-east-1, eu-west-1.

The special all keyword can be used in place of a region to specify the policy should run against
all applicable regions for the policy’s resource.

Note: when running reports against multiple regions the output is placed in a different directory than when running against a single region.
Dry RunDry-run on the policies (no actions executed) to see what resources match each policy.

Automation Library Example

Cloud Custodian Run Policy and Send Results via Slack

Automation LibraryPreview this Automation on desktop