Skip to content

An example using Pulumi CrossGuard for policy as code to ensure a database password is secret and will be encrypted in the Pulumi stack state file.

License

Notifications You must be signed in to change notification settings

clstokes/example-pulumi-secrets-policy

Repository files navigation

example-pulumi-secrets-policy

An example using Pulumi CrossGuard for policy as code to ensure a database password is secret and will be encrypted in the Pulumi stack state file.

The example uses a few Pulumi features:

Usage (Local Policy Enforcement)

pulumi stack init
pulumi config set clusterPassword --secret
pulumi up --policy-pack policy-as-code

Usage (Server-Side Policy Enforcement)

pulumi stack init
pulumi config set clusterPassword --secret
cd policy-as-code
pulumi policy publish <org>
pulumi policy enable aws-typescript latest
cd ..
pulumi up

About

An example using Pulumi CrossGuard for policy as code to ensure a database password is secret and will be encrypted in the Pulumi stack state file.

Topics

Resources

License

Stars

Watchers

Forks