CodexBloom - Programming Q&A Platform

OCI Resource Manager scenarios to Deploy Configuration with 'InsufficientPermissions' scenarios in Pulumi

๐Ÿ‘€ Views: 0 ๐Ÿ’ฌ Answers: 1 ๐Ÿ“… Created: 2025-08-22
oci pulumi resource-manager JavaScript

I'm collaborating on a project where I'm trying to deploy a configuration using OCI Resource Manager with Pulumi, but I keep running into an 'InsufficientPermissions' behavior... My Pulumi code is structured like this: ```javascript const oci = require('@pulumi/oci'); const stack = new oci.resourceManager.Stack("my-stack", { compartmentId: "ocid1.compartment.oc1..example_unique_id", config: { "my_config_key": "my_config_value" }, terraformVersion: "1.0.0" }); ``` I've verified that the IAM user I'm using has the necessary policies attached, such as `manage resources in compartment`, but the behavior continues. Hereโ€™s the specific policy I applied: ```plaintext Allow group MyDevGroup to manage all-resources in compartment MyCompartment ``` When I check the IAM settings in the console, it seems like the policy is correctly applied. However, I still see the behavior message stating `InsufficientPermissions` when I attempt to run `pulumi up`. I've tried re-authenticating and ensuring that my OCI CLI is configured with the right credentials, but it doesnโ€™t seem to help. Does anyone have insights into what might be causing this scenario? Are there additional permissions I might be missing or specific configurations in Pulumi that I should be aware of? I'm coming from a different tech stack and learning Javascript. Am I approaching this the right way? I've been using Javascript for about a year now. Any ideas how to fix this? My development environment is Debian.