-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolicies.tf
19 lines (18 loc) · 834 Bytes
/
policies.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
resource "oci_identity_policy" "access_minecraft_bucket" {
#Required
compartment_id = data.oci_identity_compartment.root.id
description = "Allow to access data in Minecraft bucket"
name = "MinecraftReadWriteAccess"
statements = [
"Allow dynamic-group ${oci_identity_dynamic_group.root.name} to manage objects in tenancy where all {target.bucket.name='${oci_objectstorage_bucket.minecraft.name}'}"
]
}
resource "oci_identity_policy" "allow_bucket_lifecycle" {
#Required
compartment_id = data.oci_identity_compartment.root.id
description = "Allow to OCI to manage "
name = "MinecraftBucketLifecycle"
statements = [
"Allow service objectstorage-${var.oci_region} to manage object-family in tenancy where all {target.bucket.name='${oci_objectstorage_bucket.minecraft.name}'}"
]
}