Skip to content

A simple Groovy tool to generate IAM policies for Oracle Cloud Infrastructure.

License

Notifications You must be signed in to change notification settings

recursivecodes/oci-policy-generator

Repository files navigation

OCI Policy Generator

Purpose

Prerequisites

Please ensure that you have the OCI CLI installed and configured on the machine where you run this script.

To test, open a command prompt and type:

oci --version

If this command does not work, this script will be unable to generate a policy.

You must also have Groovy and Gradle installed if you plan to edit and/or recompile (or if you just want to invoke the Groovy script directly).

Building

Run gradle shadowJar to create a new jar.

Running

Run java -jar /path/to/jar, or groovy /path/to/PolicyGenerator.groovy. Answer the prompts to generate a new policy, then copy/paste this into your OCI IAM Policy online or follow the prompts to create the new policy directly from this tool.

You may download the latest release on GitHub if you'd just like to use the tool without downloading/building the source.

About

A simple Groovy tool to generate IAM policies for Oracle Cloud Infrastructure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages