Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/desteves/pulumi-stackvalidation-example
- Owner: desteves
- Created: 2024-02-23T16:26:51.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-06T19:24:35.000Z (11 months ago)
- Last Synced: 2024-03-06T20:43:58.794Z (11 months ago)
- Topics: iac, policy, pulumi, typescript
- Language: TypeScript
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```