https://github.com/jpluscplusm/cue-opa-tutorial
https://github.com/jpluscplusm/cue-opa-tutorial
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jpluscplusm/cue-opa-tutorial
- Owner: jpluscplusm
- Created: 2023-08-31T16:13:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-31T16:21:00.000Z (about 2 years ago)
- Last Synced: 2025-01-16T09:09:27.506Z (10 months ago)
- Language: CUE
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cue-opa-tutorial
A translation of
https://www.openpolicyagent.org/docs/latest/terraform/#getting-started into
non-idiomatic CUE.
## Usage
```
$ cue eval -e '#authz' .:policy -l tfplan: \
success.original-tf-plan.json
true
$ cue eval -e '#authz' .:policy -l tfplan: \
success.additional-no-op-iam-change.json
true
$ cue eval -e '#authz' .:policy -l tfplan: \
failure.contains-iam-change.json
false
```