Policy as Code ("CrossGuard")
CrossGuard is a beta feature and is subject to breaking changes. The open
--policy-pack flag is free and available for all to use. A preview of CrossGuard
is also available in the Pulumi Console, which enables you to enforce policies across an
organization. To get access, submit a request here.
CrossGuard is Pulumi’s new Policy as Code offering. CrossGuard empowers you to set guardrails to enforce compliance for resources so developers within an organization can provision their own infrastructure while sticking to best practices and security compliance. Using Policy as Code, you can write flexible business or security policies.
Using CrossGuard, organization administrators can apply these rules to particular stacks within their organization. When policies are executed as part of your Pulumi deployments, any violation will gate or block that update from proceeding.
Pulumi CrossGuard policies for AWS (AWSGuard)
In addition to being able to implement your own CrossGuard policies, we’ve also created a set of policies that codifies best practices for AWS that you can adopt and use in a Policy Pack. AWSGuard is a configurable library that you can use to enforce best practices for your own Pulumi stacks or organization. Learn more and get started with AWSGuard.
If you’re looking for some example Policy Packs, take a look at these:
Get the answers to some Frequently Asked Questions about CrossGuard.