Last active
February 11, 2021 02:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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