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

https://github.com/anderseknert/opa-cicd-demo

Examples of OPA running in CI/CD contexts
https://github.com/anderseknert/opa-cicd-demo

Last synced: over 1 year ago
JSON representation

Examples of OPA running in CI/CD contexts

Awesome Lists containing this project

README

          

# styra-tf-demo

## Running

Run `plan.sh`, or:

```shell
terraform plan --out tfplan.binary
terraform show -json tfplan.binary > tfplan.json
```

## Testing state changes

### opa eval

```shell
opa eval --format pretty --fail-defined --input tfplan.json --data policy/main.rego 'data.main.deny[x]'
```

### conftest test

```shell
conftest test tfplan.json
```

### Styra

```shell
styra vet tfplan.json
```