Skip to content

Instantly share code, notes, and snippets.

@lucassrg
Last active February 11, 2021 02:58
Show Gist options
  • Save lucassrg/14d61771e89f5872564817cf6321b9ea to your computer and use it in GitHub Desktop.
Save lucassrg/14d61771e89f5872564817cf6321b9ea to your computer and use it in GitHub Desktop.
Create OCI IAM policy for publishing and consuming OCI Stream - oci iam policy create --from-json file://create-iam-policy.json
{
"compartmentId": "<compartment-ocid>",
"description": "Policy to allow publishers/consumers to use a Stream",
"name": "use-streams",
"statements": [
"Allow group <group-name> to use stream-push in compartment id <compartment-ocid> where target.stream.id='<stream-ocid>'",
"Allow group <group-name> to use stream-pull in compartment id <compartment-ocid> where target.stream.id='<stream-ocid>'"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment