Skip to content

Commit

Permalink
fix CreatePolicy documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Dec 13, 2024
1 parent 3915544 commit f1e856a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ For CreatePolicy, you should use `--jsonstr-file`.

As CreatePolicy require Document to be a string contaning a jsons, if you want to pass the policy directly to oapi-cli, `--Document` argument should look like this:
```
"Document": "{\"Statement\": [ {\"Effect\": \"Allow\", \"Action\": [\"*\"], \"Resource\": [\"*\"]} ]}"
'{ \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [\"*\"], \"Resource\": [\"*\"] } ] }'
```

With `--jsonstr-file`, you can simply create a json containing your policy, and pass it to oapi-cli:
Expand Down

0 comments on commit f1e856a

Please sign in to comment.