Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/desteves/pulumi-stackvalidation-example

An example of setting up a StackValidation policy that is cross-resource dependent.
https://github.com/desteves/pulumi-stackvalidation-example

iac policy pulumi typescript

Last synced: 18 days ago
JSON representation

An example of setting up a StackValidation policy that is cross-resource dependent.

Awesome Lists containing this project

README

        

# Pulimi Policy as Code Stack Validation Example

[StackValidation code](https://github.com/desteves/pulumi-stackvalidation-example/blob/main/infra/policypack/index.ts#L17)

## When in violation of the Stack Policy

```bash
Policies:
[email protected] (local: policypack)
- [mandatory] pulumi-stackvalidation-example-diana (pulumi:pulumi:Stack: pulumi-stackvalidation-example-dev)
every bucket must have at least one enabled replication rule or be a destination bucket of an enabled rule
arn:aws:s3:::pulumi-stackvalidation-example-dest-diana-d34e496
- [mandatory] pulumi-stackvalidation-example-diana (pulumi:pulumi:Stack: pulumi-stackvalidation-example-dev)
every bucket must have at least one enabled replication rule or be a destination bucket of an enabled rule
arn:aws:s3:::pulumi-stackvalidation-example-diana-b6efb4e

```

## When in compliance of the Stack Policy

```bash
Policies:
[email protected] (local: policypack)
```