OCI Object Storage Access implementing IAM Policies in Terraform Configuration
I'm trying to debug I'm currently working with an scenario where my Terraform deployment for Oracle Cloud Infrastructure (OCI) is failing to grant access to an Object Storage bucket due to policy misconfigurations. I have a bucket created in one compartment, and I'm trying to allow another compartment's group to access this bucket. Despite applying the following IAM policy: ```hcl resource "oci_identity_policy" "object_storage_access_policy" { compartment_id = "${oci_identity_compartment.target_compartment.id}" name = "AllowObjectStorageAccess" description = "Allow group access to Object Storage bucket" statements = [ "Allow group ${oci_identity_group.target_group.name} to manage objects in compartment ${oci_identity_compartment.bucket_compartment.name}" ] } ``` I'm receiving the behavior `InvalidPolicy: Policy statement is invalid:` when applying the Terraform configuration. I have double-checked the compartment and group names, and they seem correct. Additionally, the group has been confirmed to exist. When I query the policies from the OCI console, I notice that the permissions aren't being applied as expected. I've also tried changing the action from `manage` to `read` and `write`, but that has not resolved the scenario either. Has anyone encountered similar problems, or can offer insights into what might be misconfigured here? Any tips on diagnosing IAM policy issues in OCI would be greatly appreciated. I've been using Terraform for about a year now. Any ideas what could be causing this?